LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-02-2003, 08:55 PM   #1
b_usa
Member
 
Registered: Feb 2003
Location: Springfield, OR
Posts: 30

Rep: Reputation: 15
Apache Virtual Hosts questions


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!
 
Old 03-02-2003, 09:17 PM   #2
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
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>
replace xxx.xxx.xxx.xxx with your IP of course'
 
Old 03-02-2003, 09:22 PM   #3
b_usa
Member
 
Registered: Feb 2003
Location: Springfield, OR
Posts: 30

Original Poster
Rep: Reputation: 15
Think I got everything set up roght, actually. Would anyone test these sites for me?

http://bryan.shacknet.nu

http://joe.shacknet.nu

Thanks again.
 
Old 03-02-2003, 09:24 PM   #4
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
http://bryan.shacknet.nu/linux.html

NOT FOUND But they work alright
 
Old 03-02-2003, 09:25 PM   #5
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
should we all start port scanning you for security leaks etc on you home network?
 
Old 03-02-2003, 09:38 PM   #6
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
I'm just kidding
 
Old 03-02-2003, 10:10 PM   #7
b_usa
Member
 
Registered: Feb 2003
Location: Springfield, OR
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
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.
 
Old 03-02-2003, 10:22 PM   #8
b_usa
Member
 
Registered: Feb 2003
Location: Springfield, OR
Posts: 30

Original Poster
Rep: Reputation: 15
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.
 
Old 03-02-2003, 10:41 PM   #9
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
I didn't mean to scare you. Looks good from here!

damn quotes,CAPS and and all the other common config problems;
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
Virtual Hosts with Apache noripcord7 Linux - Games 1 02-22-2004 10:33 PM
Apache Virtual Hosts quozt Linux - General 3 10-15-2003 09:51 AM
Apache Virtual Hosts gbg Linux - Software 4 10-02-2003 08:35 AM
Apache: Virtual hosts pk21 Linux - Software 15 10-08-2002 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration