Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
yeah, hey, my question is, i set up all my virtual hosts to goto seperate domains, but the second virtual host, the index file, is getting redirected to the first virtual host.. is there anyway around this? (i hope that makes sense)
also, i need some help on having separate log files for each domain, just on how to do it, thanks.
are all sites set up as virtual host? even your 'main site' should be set up as a vhost. if not, all vhosts will point to the index file of the main site.
Originally posted by notstrider yeah, hey, my question is, i set up all my virtual hosts to goto seperate domains, but the second virtual host, the index file, is getting redirected to the first virtual host.. is there anyway around this? (i hope that makes sense)
I take it that you've made sure that the DNS side of things is working? Post the vhost(s) section(s) of httpd.conf so we can see what you've got there.
Quote:
Originally posted by notstrider also, i need some help on having separate log files for each domain, just on how to do it, thanks.
the logs are directed to /var/log/apache/ , but i want them to be directed to the folder where each domain is, like /web/domain1/logs (for domain one) and /web/domain2/logs (for domain two)
i hope that makes sense.. hehe
To get the logs to /web/domain1/logs you simply need to have ErrorLog /web/domain1/logs/some_access-log and ensure that whatever user httpd runs as has the ability to write to this directory.
I've also only played with named virtualhosts not IP addressed based virtual hosts. In which case I'm using
i had changed the IP address' to the actual virtual host, it restarts fine, but it's not reading seperate log files for the domains, and the second web domain is reading the index file for the first domain.. heh
*had to edit a word out, since it made no sense* heh.
Last edited by notstrider; 02-06-2003 at 12:00 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.