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
Apache Virtual host issue sunnysthakur UNIX for Advanced & Expert Users 2 08-28-2018 03:28 PM
Solaris 10 virtual - how do I tell physical host? psychocandy Solaris 4 11-29-2017 09:02 AM
Problems with Apache Virtual Host Corona688 Web Programming 27 01-20-2014 03:45 PM
Apache virtual host config vs global config problem freebird8z Red Hat 1 04-05-2013 11: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 12:56 PM
Virtual Host Apache Duffs22 Red Hat 2 07-13-2011 07:34 AM
Unix virtual host detection Meridian Solaris 3 01-20-2004 04:55 AM
Unix virtual host detection Meridian Solaris 1 01-14-2004 10:13 PM
Resolving Aliases and Virtual IP's on a Host Scott Pullen UNIX for Advanced & Expert Users 1 12-20-2001 02:11 PM
Apache virtual host 98_1LE UNIX for Dummies Questions & Answers 4 12-11-2001 06:23 PM


All times are GMT -4. The time now is 10:05 PM.

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