Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Help with Virtual Hosts |
Page Previous 1, 2 |
Author |
|
Anaksunaman
Joined: 19 Dec 2013 Posts: 54
|
Posted: Sat 14 Jun '14 3:26 Post subject: Help with Virtual Hosts |
|
|
Just a thought, but I would ditch the
Code: | <VirtualHost _default_:80> |
duplicate entry all together since you seem not to be specifying any IP addresses and are apparently using name based virtual hosts. |
|
Back to top |
|
AdrianK_IT
Joined: 30 May 2013 Posts: 34 Location: Scottish Borders, UK
|
Posted: Tue 17 Jun '14 13:05 Post subject: |
|
|
I run multiple name-based virtual hosts using Apache 2.4.9 32-bit on Win 8.1 32-bit and 64-bit PCs.
You need to post the lines relevant to your main/default virtual host from httpd.conf as well, to put your vhosts.conf in context.
I've no idea what's causing your problems, but you should certainly clean up your vhosts.conf before you try to troubleshoot it.
The * in <VirtualHost *:80> means 'listen on any network interface/IP address'; it has nothing to do with the names of your virtual hosts. Get rid of the <VirtualHost _default_:80> entry; it's redundant at best, gobbledegook at worst.
The ServerAlias entries are also completely redundant, since thay are the same as the server name. ServerAlias is for when you want people to be able reach your servers using other than the 'proper' address eg www.intranet.domain.org or *.intranet.domain.org (which would allow people to access your site by typing <anythingatall>.intranet.domain.org.
Last edited by AdrianK_IT on Tue 17 Jun '14 15:45; edited 1 time in total |
|
Back to top |
|
AdrianK_IT
Joined: 30 May 2013 Posts: 34 Location: Scottish Borders, UK
|
Posted: Tue 17 Jun '14 15:25 Post subject: |
|
|
Been having another look at what you have posted so far.
The report from running httpd -s clearly indicates an inconsistency between the main/default server configuration in httpd.conf and in vhosts.conf.
I note in your example vhosts.conf file that you use the admin email address techsupport@domain.org
What is your main server name? domain.org? or intranet.domain.org?
If the latter, do you use that in httpd.conf? Or if the former (ie you use that in httpd.conf) then your vhosts.conf main/default entry should read ServerName domain.org, too (perhaps with a ServerAlias intranet.domain.org). |
|
Back to top |
|
jfha73
Joined: 18 Aug 2011 Posts: 62 Location: New York
|
Posted: Thu 19 Jun '14 16:00 Post subject: |
|
|
To answer your question the main domain is intranet.domain.org, also, I added the Acceptfilter lines to my httpd.conf and it has not creeped out ever since.
So I guess it needed that.
Thanks much. |
|
Back to top |
|
|
|
|
|
|