Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Okie Dokie. Here is my setup. ADSL through 4 port router to machine a and machine b. MAchine b is running Apache 2.0.44 (On Win2K for the moment, until I feel comfortable enough w/ Apache to take the plunge into CLI land with it). I have three domains I want to serve up off of machine b. I have tried adding <virtual host></virtual host> entries for each domain, but have never been able to make Apache like the config file, let alone actually serve these other domain names. I am wanting to use name-based virtual hosts, as I have a dynamic IP and use the services of dyndns.org. So my question is this, where can I go to find beginner level Apache documentation for running virtual hosts? Please don't be clever and say Apache.org or Google "Apache documentation" as I have really looked and cannot fond anything that has given a sort of step by step accounting of virtual hosts. Also, just wondering, Since both of these machines share a single gateway, (the router's IP), how would you telnet into one specific machine? Or how would you single out one single machine for anything (from the net)? As always, thanks for your time!
there is no step by step. There is an example of the Virtual hosts in the httpd.conf file itself.
Your basic vhost will look like so in the config file:
Code:
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName www.dom.com
User user
Group group
ServerAdmin "user@dom.com"
DocumentRoot /usr/local/vhosts/dom.com/httpdocs
CustomLog /usr/local/vhosts/dom.com/logs/access_log combined
ErrorLog /usr/local/vhosts/dom.com/logs/error_log
</VirtualHost>
should we all start port scanning you for security leaks etc on you home network?
Not funny! But I suppose I am aking for it advertising my inexperience on a site devoted to a "hacker's o.s." .
But seriousky, thanks for checking. And as far as pages not being there, I havent really done a real site yet, just focusing on getting the guts together first.
Actually, my problem was that I wasnt including parenthesis around the path to the root directory for each vhost. Felt pretty stupid once I figured that out. That is the thing about computers, you can spend hours reading and researching every aspect of a configuration or concept and not solve your problem before you figure out that the problem was your own stupidity.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.