👤
Home Man
Search
Today's Posts
Register

Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Apache question - virtual host related

Tags
apache, apache config, apache virtual host, apache2, virtual host

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 03-31-2013
Apache question - virtual host related

Hi folks,

I recently read about Apache virtual host and was able to configure that as well. I used name based virtual host (lets say http://vhost1.example.com) and it worked just fine. Then I configured another named based virtual host on same apache server (lets say http://vhost2.example.com) and that worked too (ONLY after disabling first one i.e. vhost1). Otherwise it was showing homepage of first virtual host, if I dont disable the first virtual server.

My initial understanding says that there can be multiple active virtual hosts (name based) - but that doesn't seem to be the case. I know and learnt about precedence also and according to that first virtual web server will be default webserver.

My quesion is - how to enable all name based virtual hosts & is that even possible? If yes, could someone please provide a same config?

Cheers.
# 2  
Old 03-31-2013
You will have to be more specific about what you've done and in what ways it is and isn't working.
# 3  
Old 04-02-2013
Posting your httpd.conf would be good (along with any additional .conf's apache has been configured to pull in).

From the symptoms it sounds like you might not have uncommented the "NameVirtualHost *:80" line but we can't tell for sure. If you don't have "NameVirtualHost" configured, apache httpd will default to IP-based VHosts and just resolve DNS names to get the IP.

I'd check that and if you're still having issues put your configuration files up on dpaste.org (censoring sensitive things like passwords and usernames) so we can review.
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris 10 virtual - how do I tell physical host? psychocandy Solaris 4 11-29-2017 08:02 AM
Problems with Apache Virtual Host Corona688 Web Programming 27 01-20-2014 02:45 PM
Apache virtual host config vs global config problem freebird8z Red Hat 1 04-05-2013 10:33 AM
Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host Matt_VB Solaris 4 04-29-2012 11:56 AM
Virtual Host Apache Duffs22 Red Hat 2 07-13-2011 06:34 AM
Solaris virtual machine access on host os ankurk Solaris 2 03-14-2010 06:52 AM
Unix virtual host detection Meridian Solaris 3 01-20-2004 03:55 AM
Unix virtual host detection Meridian Solaris 1 01-14-2004 09:13 PM
Resolving Aliases and Virtual IP's on a Host Scott Pullen UNIX for Advanced & Expert Users 1 12-20-2001 01:11 PM
Apache virtual host 98_1LE UNIX for Dummies Questions & Answers 4 12-11-2001 05:23 PM


All times are GMT -4. The time now is 01:29 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password