logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Error setting up Netbox using Apache 2.4.18
Author
mcvickj



Joined: 10 Apr 2017
Posts: 1
Location: USA, Grand Rapids

PostPosted: Mon 10 Apr '17 16:12    Post subject: Error setting up Netbox using Apache 2.4.18 Reply with quote

Good morning. I am trying to setup Netbox running on Ubuntu 16.04.2 running Apache 2.4.18.

Prior to installing apache2 I was able to issue ./manage.py runserver 0.0.0.0:8000 --insecure and netbox started up with no problems. The following day I continued on with the instructions and installed apache2, gunicorn and supervisor. When I try going to the IP address of my server it just loads the default apache page. I can't seem to get netbox to load. If I try disabling the 000-default site by issuing sudo a2dissite 000-default and refresh my browser I get a 503 Service Unavailable message.

Here is my netbox.conf from /etc/apache2/sites-available

<VirtualHost *:80>
ProxyPreserveHost On

ServerName netbox

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://localhost:8001/
ProxyPassReverse / http://localhost:8001/
</VirtualHost>


Output from running apache2ctl -t

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK


Output from running apache2ctl -S

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 is a NameVirtualHost
default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost netbox (/etc/apache2/sites-enabled/netbox.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex proxy: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33 not_used
Group: name="www-data" id=33 not_used

Here is the last chunk of my apache2 error log.

[Fri Apr 07 10:26:11.596822 2017] [core:notice] [pid 6640:tid 140540152878976] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 07 10:26:18.007698 2017] [proxy:error] [pid 6643:tid 140540066813696] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:8001 (localhost) failed
[Fri Apr 07 10:26:18.007753 2017] [proxy:error] [pid 6643:tid 140540066813696] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 60s
[Fri Apr 07 10:26:18.007791 2017] [proxy_http:error] [pid 6643:tid 140540066813696] [client 172.16.72.1:63604] AH01114: HTTP: failed to make connection to backend: localhost
[Fri Apr 07 10:29:30.436150 2017] [mpm_event:notice] [pid 6640:tid 140540152878976] AH00491: caught SIGTERM, shutting down
[Fri Apr 07 10:29:31.503483 2017] [mpm_event:notice] [pid 6798:tid 140465015555968] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Apr 07 10:29:31.503564 2017] [core:notice] [pid 6798:tid 140465015555968] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 07 10:30:17.502000 2017] [mpm_event:notice] [pid 6798:tid 140465015555968] AH00491: caught SIGTERM, shutting down
[Fri Apr 07 10:30:18.568534 2017] [mpm_event:notice] [pid 6922:tid 140183646152576] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Apr 07 10:30:18.568609 2017] [core:notice] [pid 6922:tid 140183646152576] AH00094: Command line: '/usr/sbin/apache2'
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sun 14 May '17 12:44    Post subject: Reply with quote

Your apache can't connect to the server running on port 8001

Is that running?
Back to top


Reply to topic   Topic: Error setting up Netbox using Apache 2.4.18 View previous topic :: View next topic
Post new topic   Forum Index -> Apache