»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-22-2003, 01:41 PM   #1 (permalink)
Registered User
 
Join Date: Jul 2003
Posts: 3
littlejohns is on a distinguished road
Virtual Hosting

I am trying to run Virtual Hosting on my Suse Linux machine on an Apache server.

192.168.1.102:80 is a NameVirtualHost
default server littlejohns.org (/etc/httpd/httpd.conf:1314)
port 80 namevhost littlejohns.org (/etc/httpd/httpd.conf:13
14)
port 80 namevhost ccah.d2g.biz (/etc/httpd/httpd.conf:1324)


This is the log from running httpd -S which tells me it is working; however, I am not able to get to the other directory. littlejohns.org seems to work, like always, but ccah.d2g.biz goes to the same directory as littlejohns.org.

I have tried many different tactics in the httpd.conf file with no results.


Here is the Virtual host section of the httpd.conf

<VirtualHost 192.168.1.102>
# ServerAdmin webmaster@dummy-host.example.com
ServerAlias www.littlejohns.org
ServerPath /usr/local/httpd/htdocs
DocumentRoot /usr/local/httpd/htdocs
ServerName littlejohns.org
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost 192.168.1.102>
DocumentRoot /usr/local/httpd/htdocs/CCAH
ServerName ccah.d2g.biz
ServerAlias www.ccah.d2g.biz
ServerPath /usr/local/httpd/htdocs/CCAH
</VirtualHost>


Any thoughts would be helpfull.

littlejohns is offline   Reply With Quote
Old 07-22-2003, 02:28 PM   #2 (permalink)
Registered User
 
gothic's Avatar
 
Join Date: Oct 2001
Location: Palatine, IL
Posts: 375
gothic is on a distinguished road
Hmm, I can't see any errors, but here is something you can try:

Change your NameVirtualHost from the IP address to an *

And change your <VirtualHost> directives to also have an * instead of an IP address.

Also, I'm assuming when you try and load these sites, you are using the hostname, and not IP address? Are you running an internal DNS server?
gothic is offline   Reply With Quote
Old 07-22-2003, 04:31 PM   #3 (permalink)
Registered User
 
Join Date: Jul 2003
Posts: 3
littlejohns is on a distinguished road
Helo gothic,

Thanks for your reply!

I am not running a dns server but if it would help I wouldnt be opposed to trying. My router does support loopback so I am able to use the host name as appoed to the ip. I have used the argument * in the NameVitualHost and <VirtualHost> a couple o times. I had toggled back and forth through my troubleshooting using both * and internal ip. I will give that another shot though. Interestingly enough, When I pull up webmin it recognises the Virtual Host and displays it in the GUI.

littlejohns
littlejohns is offline   Reply With Quote
Old 07-22-2003, 05:03 PM   #4 (permalink)
Registered User
 
gothic's Avatar
 
Join Date: Oct 2001
Location: Palatine, IL
Posts: 375
gothic is on a distinguished road
Hmmm... When I browse to your websites, I get the same pages basicly. But the titles are different, so I guess it is pulling from two different locations.. =]

What did you do to fix it?
gothic is offline   Reply With Quote
Old 07-22-2003, 05:39 PM   #5 (permalink)
Registered User
 
Join Date: Jul 2003
Posts: 3
littlejohns is on a distinguished road
I never even saw that. I selected a different index page so that I would recognise it when I got it to work, but I see what you are talking about now. It could have been doing that the whole time. The next question I have to figuer out is where its pulling this page from. I looked at the html on both pages and they are the same yet the title only displays on the default server. I am not quite sure what that means!

BTW I hope you dont mind I was snooping around your website and I cam accross an html interface for ssh which I though was cool, but it auto logged me in as root which I thought was scarry. I desided to send you this tagand say I was sorry if indeed this is your server. I mean no harm I was just curious.

Last edited by littlejohns; 07-22-2003 at 05:50 PM.
littlejohns is offline   Reply With Quote
Old 07-23-2003, 12:35 AM   #6 (permalink)
Registered User
 
gothic's Avatar
 
Join Date: Oct 2001
Location: Palatine, IL
Posts: 375
gothic is on a distinguished road
Hee... Actually that's just some javascript stuff I was messing around with.. =]

Doesn't really log into the box, but I wanted to make the impressession that it did and have some fun stuff with it...

Gave me a little excuse to learn some javascripting..

=]
gothic is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 05:07 AM.