Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

Connecting to sub-subdomain redirects to main site

Post new topic   Reply to topic    Apache Forum Index -> Apache

View previous topic :: View next topic  
Author Message

Joined: 25 Jul 2018
Posts: 1

PostPosted: Wed 25 Jul '18 13:28    Post subject: Connecting to sub-subdomain redirects to main site Reply with quote


We have a main intranet hosted on apache 2.4.6 (CentOS) with the url format https://intranet.domain.co.uk

We want to setup other sites on the same server with the format http://something.docs.domain.co.uk

I have setup a virtualhost as the below

<VirtualHost *:80>
 ServerName something.docs.domain.co.uk
 DocumentRoot /var/www/mkdocs/ic/documentation-repository/site
 ErrorLog /var/www/mkdocs/ic/documentation-repository/site/error.log
 CustomLog /var/www/mkdocs/ic/documentation-repository/site/requests.log combined

The problem is that it just redirects to https://intranet.domain.co.uk.

If i change the Servername to just http://docs.domain.co.uk or http://somethingdocs.co.uk it works fine, it only seems to go wrong when I set it up as a sub-subdomain in the format http://something.docs.domain.co.uk

All DNS records point to the same server address.

Could anyone tell me what im missing here! I am eager to learn Smile


Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6414
Location: Germany, Next to Hamburg

PostPosted: Tue 07 Aug '18 11:52    Post subject: Reply with quote

That seems more to be an issue with the software your are running rather than apache.
Back to top

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1