Hi. I am trying to host more than one domain on my IP address to serve more than one web site.
My old domain was princenet.sytes.net and the new one is prince.homelinux.org. I want to serve a web page at princenet.sytes.net that explains that my address has changed and the web site has moved to prince.homelinux.org. The real site will be hosted on prince.homelinux.org. I would also like a catch-all virtual host that will serve a page on any other domain that points to my machine that will allow someone to email me if they want to serve a site at that domain, but that's not a priority at this time. As per the documentation, I added the following lines to my /etc/httpd/conf/httpd.conf file for Apache 2.0.40-21.5 on Red Hat 9: NameVirtualHost * <VirtualHost *> ServerName prince.homelinux.org DocumentRoot /var/www/html </VirtualHost> <VirtualHost *> ServerName princenet.sytes.net ServerAlias *.princenet.sytes.net:80 DocumentRoot /var/www/html/moved </VirtualHost> I am using the ServerAlias directive for princenet.sytes.net because the dynamic DNS with which the domain is registered allows wildcards as in www.princenet.sytes.net or mail.princenet.sytes.net to all point to my computer. The problem is that when I start httpd I get the following message: [EMAIL PROTECTED] ~# service httpd start Starting httpd: [Sun Sep 21 21:40:48 2003] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results [ OK ] [EMAIL PROTECTED] ~# and all requests sent to the server receive a "400 bad request" error. As far as I know I followed the docs to the letter as found on http://httpd.apache.org/docs-2.0/vhosts as stated in the config file. I also tried adding a port address to the NameVirtualHost directive as suggested by the error message, but it then shows the page indicated by the first <VirtualHost> block and ignores all subsequent <VirtualHost> blocks. What am I doing wrong? How could the docs be throwing me off so badly? Could the docs somehow be wrong or something? :O Thanks for any help! Prince -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list