Skip to main content

Thread: apache2 and webmin config


using webmin manage apache2

created 3 virtual virtual hosts in webmin for:
domain.com
sub.domain.com
sub2.domain.com

created 3 a-records in dns:
@ - pub-ip
sub - pub-ip
sub2 - pub-ip

3 sites resolve fine , correct pages loaded, however, when enters http://pub-ip browser, sub.domain.com loaded.

how change http://pub-ip throw 404 error, or go apache's default var/www/index.html ?

thanks!

if followed standard practice of putting virtual sites separate configuration files in directory /etc/apache2/sites-enabled, first site alphabetically in directory handle requests sites not have specified definition. if in directory, you'll see file defines default site called 000-default. should load ahead of name-based virtual hosts , handle default requests. since isn't happening you, i'm guessing defined virtual hosts somewhere else. try moving <virtualhost> containers separate files in sites-enabled , make sure sort below 000-default.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] apache2 and webmin config


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account