Note: I'm very new to Apache, so I may just need a simple tip.
I've successfully followed the instructions at https://pypi.python.org/pypi/mod_wsgi to set things up so I have an empty Django project being served over port 80 on an AWS Linux AMI EC2 server using mod_wsgi. I use this command to start serving the Django project:
python manage.py runmodwsgi --setup-only --port=80 --user apache --group apache --server-root=/etc/mod_wsgi-express-80
This seems to create a separate Apache instance with its own configuration that only serves the Django project, independent of the system Apache installation.
However, I also want to be able to serve phpMyAdmin, say on port 81, but I'm not sure which Apache instance I'm supposed to modify (and the httpd.conf
for the mod_wsgi instance is very different from the default). How should I configure my virtual hosts (and which instance should I be modifying) so that going to <ip-address>:81/phpmyadmin
gives me access to phpMyAdmin?
Currently, going to that address just times out. Going to <ip-address>
gives me the "It worked!" page as expected.
My current modifications to my main httpd.conf:
Listen 81
Include sites-enabled/*.conf
WSGIScriptAlias /process /home/ec2-user/test/test_site/test_site/wsgi.py
WSGIPythonPath /home/ec2-user/test:/home/ec2-user/.virtualenvs/venv/lib/python3.5/site-\packages
<Directory /home/ec2-user/test/test_site/test_site>
<Files wsgi.py>
Order deny,allow
Allow from all
Require all granted
</Files>
</Directory>
ExtendedStatus On
Options -Indexes FollowSymLinks
The .conf
file to serve phpMyAdmin (is there just something missing here?)
<VirtualHost *:81>
ServerName phpmyadmin
DocumentRoot /var/www-81 #symlinked to '/usr/share/phpMyAdmin'
</VirtualHost>