logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

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

or

Bitcoin

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

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Connecting to sub-subdomain redirects to main site
Author
retro2707



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

Hi,

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

Code:
<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
</VirtualHost>


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

Thanks,

Brendan
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
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


Reply to topic   Topic: Connecting to sub-subdomain redirects to main site View previous topic :: View next topic
Post new topic   Forum Index -> Apache