Someone has set Apache2 (ubuntu 14.04) to load the default page at this address: example.com:8822
. I checked /etc/apache2/apache2.conf
and /etc/apache2/ports.conf
and saw no reference to port 8822. So, I went on to to creating my website like this:
sudo vim /etc/apache2/sites-available/example.com.conf
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName example.com
ServerAlias example.com
ProxyPass / http://example.com:8822/
ProxyPassReverse / http://example.com:8822/
WSGIScriptAlias / /home/chris/project/project/wsgi.py
Alias /static/ /home/chris/project/project/staticfiles/
ErrorLog ${APACHE_LOG_DIR}/error_project.log
CustomLog ${APACHE_LOG_DIR}/access_project.log combined
<Location "/static/">
Options -Indexes
</Location>
</VirtualHost>
and finally
sudo a2ensite example.com.conf
and
sudo a2dissite 000-default.conf
and
sudo service apache2 reload
Now, in sites-enabled
there is only one entry to example.com.
However, when loading example.com:8822 it shows the default apache2 web page.
What am I doing wrong?
ls /etc/apache2/sites-available/
? Try creating a file called/var/www/html/index.html
and see if that is the actual location of your default website. I would guess that you still have the default config file in place.sites-available
includes000-default.conf
anddefault-ssl.conf
files. And this is the actual location of the default website.