getting-started.md - Apache howto error #57

Closed
opened 2025-12-29 15:30:56 +01:00 by adam · 9 comments
Owner

Originally created by @mysterfr on GitHub (Jun 28, 2016).

Hello,

Following the installation howto, I noticed an error in the Apache configuration section.

TheProxPass and ProxyPassReverse lines have an ending semi-column, wich leads to an error when restarting apache.

Additionnaly, it might be worth mentioning that the Apache proxy module should be enabled as well, throug
a2enmod proxy

Originally created by @mysterfr on GitHub (Jun 28, 2016). Hello, Following the installation howto, I noticed an error in the Apache configuration section. The`ProxPass` and `ProxyPassReverse` lines have an ending semi-column, wich leads to an error when restarting apache. Additionnaly, it might be worth mentioning that the Apache proxy module should be enabled as well, throug `a2enmod proxy`
adam added the type: bug label 2025-12-29 15:30:56 +01:00
adam closed this issue 2025-12-29 15:30:56 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 28, 2016):

Fixed the Apache config in b37503ed8f

@jeremystretch commented on GitHub (Jun 28, 2016): Fixed the Apache config in b37503ed8fec7ee3d88e6cca7924fd10c08e5705
Author
Owner

@bzoel commented on GitHub (Jun 28, 2016):

Running Apache 2.4, and I had to make the following changes to what was suggested in getting-started.md

(add "/" to the end of the guincorn URL)
ProxyPass / http://127.0.0.1:8001/
ProxyPassReverse / http://127.0.0.1:8001/

(remove "/" from the alias for static)
Alias /static /opt/netbox/netbox/static

@bzoel commented on GitHub (Jun 28, 2016): Running Apache 2.4, and I had to make the following changes to what was suggested in getting-started.md (add "/" to the end of the guincorn URL) `ProxyPass / http://127.0.0.1:8001/` `ProxyPassReverse / http://127.0.0.1:8001/` (remove "/" from the alias for static) `Alias /static /opt/netbox/netbox/static`
Author
Owner

@jeremystretch commented on GitHub (Jun 28, 2016):

Could someone please confirm that this change works fully with Apache? This will be the third time I've had to modify it.

@jeremystretch commented on GitHub (Jun 28, 2016): Could someone please confirm that this change works fully with Apache? This will be the third time I've had to modify it.
Author
Owner

@dberube1 commented on GitHub (Jun 28, 2016):

Doing a clean install now. I will let you know.

@dberube1 commented on GitHub (Jun 28, 2016): Doing a clean install now. I will let you know.
Author
Owner

@bzoel commented on GitHub (Jun 28, 2016):

I'm on a clean install of Ubuntu 14.04.4 LTS and can confirm that this is my Apache 2.4.7 config file:

<VirtualHost *:80>
    ProxyPreserveHost On

    ServerName ipam.<redacted>

    Alias /static /opt/netbox/netbox/static

    <Directory /opt/netbox/netbox/static>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Require all granted
    </Directory>

    <Location /static>
        ProxyPass !
    </Location>

    ProxyPass / http://127.0.0.1:8001/
    ProxyPassReverse / http://127.0.0.1:8001/
</VirtualHost>

I also had to enable both of the following modules

a2enmod proxy
a2enmod proxy_http
@bzoel commented on GitHub (Jun 28, 2016): I'm on a clean install of Ubuntu 14.04.4 LTS and can confirm that this is my Apache 2.4.7 config file: ``` <VirtualHost *:80> ProxyPreserveHost On ServerName ipam.<redacted> Alias /static /opt/netbox/netbox/static <Directory /opt/netbox/netbox/static> Options Indexes FollowSymLinks MultiViews AllowOverride None Require all granted </Directory> <Location /static> ProxyPass ! </Location> ProxyPass / http://127.0.0.1:8001/ ProxyPassReverse / http://127.0.0.1:8001/ </VirtualHost> ``` I also had to enable both of the following modules ``` a2enmod proxy a2enmod proxy_http ```
Author
Owner

@dberube1 commented on GitHub (Jun 28, 2016):

I can confirm bzoellers apache configuration. Running the same configuration on a clean install of Ubuntu 14.0.4.4 LTS.

@dberube1 commented on GitHub (Jun 28, 2016): I can confirm bzoellers apache configuration. Running the same configuration on a clean install of Ubuntu 14.0.4.4 LTS.
Author
Owner

@surprisequiona commented on GitHub (Jun 28, 2016):

Here is my apache config...it differs a little bit than bzoellers as it includes the Order allow,deny

@surprisequiona commented on GitHub (Jun 28, 2016): Here is my apache config...it differs a little bit than bzoellers as it includes the `Order allow,deny`
Author
Owner

@jeremystretch commented on GitHub (Jun 29, 2016):

Also received a report that the Alias line should read:

Alias /static/ /opt/netbox/netbox/static/

(with the trailing slash). I guess the two element just have to match, either both with or both without the trailing slash.

@jeremystretch commented on GitHub (Jun 29, 2016): Also received a report that the `Alias` line should read: ``` Alias /static/ /opt/netbox/netbox/static/ ``` (with the trailing slash). I guess the two element just have to match, either both with or both without the trailing slash.
Author
Owner

@mysterfr commented on GitHub (Jun 29, 2016):

Hi,

I had to remove the trailing slash in the Alias directive, and add trailing slashes to the ProxyPass statements to have it work.
My config looks exactly like Billizoellers'.

(Debian Testing with Apache 2.4.20-2)

@mysterfr commented on GitHub (Jun 29, 2016): Hi, I had to remove the trailing slash in the Alias directive, and add trailing slashes to the ProxyPass statements to have it work. My config looks exactly like Billizoellers'. (Debian Testing with Apache 2.4.20-2)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#57