Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Cannot get virtual servers working

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  how to view access_log realtime?  
Author Message
sjmo2

External


Since: Mar 18, 2004
Posts: 3



(Msg. 1) Posted: Thu Mar 18, 2004 10:20 am
Post subject: Cannot get virtual servers working
Archived from groups: alt>apache>configuration (more info?)

I am running Apache 2.044 on Mandrake but cannot get it to point to my
name-based virtual servers. I always wind-up back on my main-server
regardless of which site I try to access.

Is there some sort of override that is doing this?

my config:

ServerType standalone
ServerRoot /etc/httpd
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
DocumentRoot /var/www/html


NameVirtualHost *

<VirtualHost *>
ServerName site1.com
ServerAlias site1.com
DocumentRoot /var/www/html
ServerAdmin root RemoveThis @site1.com
</VirtualHost>

<VirtualHost *>
ServerName site2.info
ServerAlias site2.info www.site2.info *.site2.info
DocumentRoot /var/www1/html
ServerAdmin root RemoveThis @site2.info
</VirtualHost>

 >> Stay informed about: Cannot get virtual servers working 
Back to top
Login to vote
pdconetwofour_

External


Since: Jul 02, 2003
Posts: 22



(Msg. 2) Posted: Fri Mar 19, 2004 8:37 pm
Post subject: Re: Cannot get virtual servers working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

whats in /etc/hosts ?

 >> Stay informed about: Cannot get virtual servers working 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache virtual servers and DNS2GO - I have three virtual servers set up to the web pages for my three domains. I am using DNS2GO dynamic nameserver to point to my IP. I have been running two of the virtual servers for a long time with no problem. A couple days ago I added the third, but....

Virtual host? Alias? Linux/Windows/Apache dev servers prob.. - I'm maintaining a bunch of websites in ASP/PHP/ColdFusion, etc. (I love the syntactic punishment ;-). I have two dev servers: an XP/IIS box for ASP/ColdFusion, and a Redhat/Apache box for PHP, both behind a router sharing files. Currently I must port..

Virtual Hosts not working - Got 2 virtual hosts and the virtualhost basic whevever I goto www.mydomain1.com it's fine, but when I goto www.mydomain2.net it points to the default:80 vhost my configuration is: namevirtualhost * <virtualhost *> servername domain1.com extrabi...

servers IP address shows the first site in virtualhost list - I am running several websites. Which ever website appears first in my virtual host file shows up when the servers ip address is typed into a browser. Is this normal?. Because i'm running several sites, I don't really want any of the sites to come up..

SSI not working - Hello, I have a client who's web designer insists on using SSI includes. I have the server configured to allow SSI, but it seems not to work, no matter what I do. The include looks like this : <!--#include virtual="header.html" --> ...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]