• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

Virtual Hosts w/Apache 1.3, Solaris 2.5.1

I am upgrading from Apache 1.1.1 to 1.3.0, and I ran into a problem with the <VirtualHost> configuration.  Previously, I had the following in httpd.conf:

        <VirtualHost 128.200.149.10>
        ServerAdmin cmfao@uci.edu
        DocumentRoot /...apache_1.1.1_dir/htdocs/med
        ServerName www.com.fao.uci.edu
        ErrorLog logs/com-error_log
        TransferLog logs/com-access_log
        </VirtualHost>

and everything worked fine.

Right now, I have not removed the old server yet (I want to test the new server before putting it into production).  So, I am running the 1.3 server on port 8000.  When I tried accessing the main server page (by going to www.fao.uci.edu:8000), it kept displaying the virtualhost page.  I noticed that NameVirtualHost seems to be required now, so I tried that, but that didn't help.  Below is the section from the new httpd.conf:

        NameVirtualHost 128.200.149.10:8000

        <VirtualHost 128.200.149.10:8000>
        ServerAdmin root@azalea.fao.uci.edu
        DocumentRoot /... apache_1.3.0_dir/htdocs/
        ServerName www.fao.uci.edu
        ErrorLog logs/error_log
        TransferLog logs/access_log
        </VirtualHost>
       
        <VirtualHost 128.200.149.10:8000>
        ServerAdmin cmfao@uci.edu
        DocumentRoot /... apache_1.3.0_dir/htdocs/med
        ServerName www.com.fao.uci.edu
        ErrorLog logs/com-error_log
        TransferLog logs/com-access_log
        </VirtualHost>

Any suggestions?
0
cokeman_
Asked:
cokeman_
  • 2
  • 2
1 Solution
 
beackerCommented:
You need to add the following Listen directive before the
applicable VirtualHost directive:

Listen 128.200.149.10:8000

<VirtualHost 128.200.149.10:8000>

Brad
0
 
cokeman_Author Commented:
When I put the server into production (ie, remove the references to port 8000 and let it run off of port 80), would I still need the Listen directive?
0
 
beackerCommented:
You will either need to leave the Listen in place, or use the
Bind directive to let httpd know which addresses to work with.

0
 
cokeman_Author Commented:
muchas gracias
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now