#4439 Bug with Server Validation / Backup when using Non standard port

All
closed-fixed
9
2014-07-03
2014-06-28
Steven Page
No

I have placed Varnish in front of Apache on my back end server.. thus, I changed the Apache port to 8080.

I went into the server templates page, and under "Apache Website", changed each template so that the "port number for virtual host" equals 8080.

I also changed the "external port" number to 80 (instead of "same as apache")

After making these changes, Virtualmin complains that it cannot find an apache virtual host, or log file (for log file rotation) for any domains during server validation; during backups this causes it to be reported as "failed".

what is also strange is that Virtualmin (or something else?), seems to be adding "NameVirtualhost 1.2.3.4:80" and "NameVirtualHost *:80" to /etc/apache2/ports.conf.

i'm not 100% certain on this last statement, but it does appear that after changing ports.conf, changes are garbled or lost. which is yet another bug/annoyance.

this is causing some some serious problems using Virtualmin for domain administration at the moment.

is there something I am maybe forgetting to change (when switching apache to a non-standard port)?

which file does virtualmin store the validation procedure in, so that i might be able to implement a work around until a bug fix is released?

thanks again Jamie!

Discussion

  • Jamie Cameron

    Jamie Cameron - 2014-06-28

    Did you already have any domains before making this change? If so, you may need to change the port for each of them at Server Configuration -> Website Options.

     
  • Steven Page

    Steven Page - 2014-07-02

    I had to change the apache configuration files manually because it was still looking for virtual hosts by searching files under /etc/apache2/sites-available/* for port 80;

    When I changed a site back to port 80, I Could again access the page: Server Config -> Website Options

    However, I do not see anywhere to change the port number for the virtual host on the page you have suggested...

    I have configured the Port for Apache Virtual Hosts under:

    • Server Templates, and

    • Apache (General Configuration) -> Networking & Addresses

     
    Last edit: Steven Page 2014-07-02
  • Jamie Cameron

    Jamie Cameron - 2014-07-02

    The proper place to make the post change is Server Config -> Website Options. This will update both the Apache config and Virtualmin's idea of what the port should be.

     
  • Steven Page

    Steven Page - 2014-07-02

    I don't see anywhere within that page to change the port tho

     
  • Steven Page

    Steven Page - 2014-07-02

    I changed the port for one of the virtual hosts back to port 80, and browsed to Server Config -> Website Options.

    There are two Sections on this page: "Website and PHP options", and "PHP Information".

    Unfortunately, I dont see anything under these sections related to my issue? nothing concerning Port Numbers anyways

    or am I looking for something else here?

    I would just try the 'ol "Disable & Enable" Apache Feature "Fix", but there are a few sites with custom Apache settings that would be lost

     
  • Steven Page

    Steven Page - 2014-07-02

    aaah. i found it. its under "Change IP Address"

    Thanks for your help

     
  • Jamie Cameron

    Jamie Cameron - 2014-07-03
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks