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: Help with Virtual Hosts Page Previous  1, 2
Author
Anaksunaman



Joined: 19 Dec 2013
Posts: 54

PostPosted: Sat 14 Jun '14 3:26    Post subject: Help with Virtual Hosts Reply with quote

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

PostPosted: Tue 17 Jun '14 13:05    Post subject: Reply with quote

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

PostPosted: Tue 17 Jun '14 15:25    Post subject: Reply with quote

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

PostPosted: Thu 19 Jun '14 16:00    Post subject: Reply with quote

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


Reply to topic   Topic: Help with Virtual Hosts View previous topic :: View next topic
Post new topic   Forum Index -> Apache Page Previous  1, 2