Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use my RedHat 9 system to do webdesign. I access all the pages as "localhost/~user", "localhost/~anotheruser", etc. I want to use virtual hosts to access it as "site1.localhost", etc. I edited my httpd.conf to try and set them up, but it's not working. When I uncomment "NameVirtual Host *" and restart apache, I get the error "Mixing * ports and non * ports with a namevirtualhost address is not supported, proceeding with undefined results".
Putting <virtualhost>...</virtualhost> tags does nothing, presumably bcause of this error. Also, trying to access "http://localhost" resulats in a "host not found" error"
There are 2 options I think I need to adjust: UseCanonicalName [On/Off], and NameVirtualHost *, but I'm not entirely sure. Any help is appreciated.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
That is a snippet in my apache 2.0.46 config file and it works like a charm for me, so your conf error is caused elsewhere. Post ( or post a link to ) your entire httpd.conf
I'm fairly new to this myself, however I was able to resolve that error on my own machine by adding a ':80' to the end of NameVirtualHost *(NameVirtualHost *:80). This line should enabled and not commented. The reason for this has something to do with SSL's inability to work with virtual hosts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.