PDA

View Full Version : [SOLVED] Unable to create a virtual host with Apache on any ports other then 80



pcarlos853
October 24th, 2010, 02:30 AM
Hello, I have just installed Ubuntu Server 10.10, and I installed Webmin 1.520. When I goto Servers --> Apache Webserver --> Create Virtual Host --> I leave everything the default settings but change: Port 81 and Document root "/var/www2/" Then I restart Apache. But when I go to 192.168.1.4:81 I get Firefox can't establish a connection to the server at 192.168.1.4:81 . I have no idea what I am doing wrong. Any help would be greatly appreciated!

CharlesA
October 24th, 2010, 03:22 AM
I had to add this to /etc/apache2/ports.conf


NameVirtualHost *:88
Listen 88


Works for me now. :)

Here's /etc/apache2/httpd.conf:


<VirtualHost *:88>
ServerName mars
DocumentRoot /var/www/port88
</VirtualHost>

pcarlos853
October 24th, 2010, 03:35 AM
Thanks that got it working!

CharlesA
October 24th, 2010, 03:43 AM
Glad it works. Don't forget to mark the thread as solved from the thread tools menu. :)