Results 1 to 4 of 4

Thread: Unable to create a virtual host with Apache on any ports other then 80

  1. #1
    Join Date
    Aug 2009
    Location
    Mclean, VA, USA
    Beans
    67
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Question Unable to create a virtual host with Apache on any ports other then 80

    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!

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Unable to create a virtual host with Apache on any ports other then 80

    I had to add this to /etc/apache2/ports.conf

    Code:
    NameVirtualHost *:88
    Listen 88
    Works for me now.

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

    Code:
    <VirtualHost *:88>
        ServerName mars
        DocumentRoot /var/www/port88
    </VirtualHost>
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Aug 2009
    Location
    Mclean, VA, USA
    Beans
    67
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Unable to create a virtual host with Apache on any ports other then 80

    Thanks that got it working!

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Unable to create a virtual host with Apache on any ports other then 80

    Glad it works. Don't forget to mark the thread as solved from the thread tools menu.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •