Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-18-2012, 03:27 PM   PM User | #1
milesdriven
Regular Coder

 
Join Date: Dec 2011
Posts: 186
Thanks: 0
Thanked 1 Time in 1 Post
milesdriven is an unknown quantity at this point
Port 80 works. Using a diff. port w/ <virt host> to server diff. page does'nt

I have /etc/httpd/conf/httpd.conf set up fine to serve the index.html page on port 80.

I'm trying to use the virtualhost directive to get apache to send a different page on a different port.

I have this in httpd.conf:
Code:
<VirtualHost 192.168.0.2:81>
     DocumentRoot /var/www/html
     DirectoryIndex htmlside.html
</VirtualHost>
There is a htmlside.html file in the html directory. I typed this into the browser, and got nothing:
Code:
192.168.0.2:81
Typing the domain name that the "ServerName" directive is set to in the main part of httpd.conf pulls up the "already working" page just fine. Typing 192.168.0.2 without a port # brings the "already working" page up fine too.

When I type 192.168.0.2:81 to bring up the "different" page, I get nothing. I tried using port 10000 too - nothing.

Does anyone know what the problem is?

Thanks
milesdriven is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:04 PM.


Advertisement
Log in to turn off these ads.