Page not displaying SSL page, apache, CentOS #2566

Closed
opened 2025-12-29 18:20:01 +01:00 by adam · 1 comment
Owner

Originally created by @defiant214 on GitHub (Apr 30, 2019).

Hey Guys,

I successfully installed netbox and it is working without issue using Apache on CentOS 7. However, after enabling SSL functionality, the page/fonts do not display correctly:

image

Here is my config in /etc/httpd/conf.d/netbox.conf:

<VirtualHost *:80>
    ProxyPreserveHost On

    ServerName netbox.mydomain.com

    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>

<VirtualHost *:443>

    ProxyPreserveHost On

    ServerName netbox.mydomain.com
    ErrorLog /var/log/httpd/ssl_error_log
    TransferLog /var/log/httpd/ssl_access_log
    LogLevel warn

    SSLEngine on
    SSLProtocol All -SSLv2 -SSLv3
    SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:AES256+RSA
    SSLHonorCipherOrder on
    SSLCertificateFile /etc/httpd/conf/ssl.crt/netbox.cer
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/netbox.key
    #SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
        SSLOptions +StdEnvVars
    </Files>
    <Directory "/var/www/cgi-bin">
        SSLOptions +StdEnvVars
    </Directory>
    SetEnvIf User-Agent ".*MSIE.*" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
    CustomLog logs/ssl_request_log \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

    Alias /static /opt/netbox/netbox/static

    <Directory /var/www/html/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>

Any thoughts? I have seen several similar issues, but none of the solutions seemed to work with me. I did use the /opt/netbox/netbox/manage.py collectstatic script during installation, as instructed. It only does not work on https/443.

Thanks!

Originally created by @defiant214 on GitHub (Apr 30, 2019). Hey Guys, I successfully installed netbox and it is working without issue using Apache on CentOS 7. However, after enabling SSL functionality, the page/fonts do not display correctly: ![image](https://user-images.githubusercontent.com/25668806/56985986-9e14c980-6b57-11e9-82d4-58625461dee5.png) Here is my config in /etc/httpd/conf.d/netbox.conf: ``` <VirtualHost *:80> ProxyPreserveHost On ServerName netbox.mydomain.com 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> <VirtualHost *:443> ProxyPreserveHost On ServerName netbox.mydomain.com ErrorLog /var/log/httpd/ssl_error_log TransferLog /var/log/httpd/ssl_access_log LogLevel warn SSLEngine on SSLProtocol All -SSLv2 -SSLv3 SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:AES256+RSA SSLHonorCipherOrder on SSLCertificateFile /etc/httpd/conf/ssl.crt/netbox.cer SSLCertificateKeyFile /etc/httpd/conf/ssl.key/netbox.key #SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt <Files ~ "\.(cgi|shtml|phtml|php3?)$"> SSLOptions +StdEnvVars </Files> <Directory "/var/www/cgi-bin"> SSLOptions +StdEnvVars </Directory> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog logs/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" Alias /static /opt/netbox/netbox/static <Directory /var/www/html/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> ``` Any thoughts? I have seen several similar issues, but none of the solutions seemed to work with me. I did use the /opt/netbox/netbox/manage.py collectstatic script during installation, as instructed. It only does not work on https/443. Thanks!
adam closed this issue 2025-12-29 18:20:01 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 30, 2019):

Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided here. For general discussion, questions, or assistance with installation issues, please post to our mailing list instead.

@jeremystretch commented on GitHub (Apr 30, 2019): Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided [here](https://github.com/digitalocean/netbox/issues/new/choose). For general discussion, questions, or assistance with installation issues, please post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss) instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2566