Chris Seberino
2012-08-30 05:48:52 UTC
I'm trying to make Apache be the proxy for an app running on
localhost.
Here is my Apache code below (Code below redirects all to HTTPS.)
My domain is sage.phil4.com. I am able to visit the login page and
log in.
After I do that the app tries to go to a page that Apache interprets
as
https://sage.phil4.comhome/admin instead of
https://sage.phil4.com/home/admin
(Notice missing / in the middle!)
Any help greatly appreciated.
<VirtualHost 72.14.188.15:80>
#
=============================================================================
ServerName sage.phil4.com
ServerAlias www.sage.phil4.com
DocumentRoot /var/www
Options Indexes FollowSymLinks
#
=============================================================================
<Directory /home/seb/MAIN/phil4/apache>
Order Allow,Deny
Allow from All
</Directory>
#
=============================================================================
Redirect / https://sage.phil4.com
#
=============================================================================
</VirtualHost>
<VirtualHost 72.14.188.15:443>
#
=============================================================================
ServerName sage.phil4.com
ServerAlias www.sage.phil4.com
DocumentRoot /var/www
Options Indexes FollowSymLinks
#
=============================================================================
<Directory /home/seb/MAIN/phil4/apache>
Order Allow,Deny
Allow from All
</Directory>
#
=============================================================================
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/sage.phil4.com.cert
SSLCertificateKeyFile /etc/apache2/ssl/sage.phil4.com.private_key
SSLCertificateChainFile /etc/apache2/ssl/sage.phil4.com.int_cert
#
=============================================================================
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
#
=============================================================================
</VirtualHost>
localhost.
Here is my Apache code below (Code below redirects all to HTTPS.)
My domain is sage.phil4.com. I am able to visit the login page and
log in.
After I do that the app tries to go to a page that Apache interprets
as
https://sage.phil4.comhome/admin instead of
https://sage.phil4.com/home/admin
(Notice missing / in the middle!)
Any help greatly appreciated.
<VirtualHost 72.14.188.15:80>
#
=============================================================================
ServerName sage.phil4.com
ServerAlias www.sage.phil4.com
DocumentRoot /var/www
Options Indexes FollowSymLinks
#
=============================================================================
<Directory /home/seb/MAIN/phil4/apache>
Order Allow,Deny
Allow from All
</Directory>
#
=============================================================================
Redirect / https://sage.phil4.com
#
=============================================================================
</VirtualHost>
<VirtualHost 72.14.188.15:443>
#
=============================================================================
ServerName sage.phil4.com
ServerAlias www.sage.phil4.com
DocumentRoot /var/www
Options Indexes FollowSymLinks
#
=============================================================================
<Directory /home/seb/MAIN/phil4/apache>
Order Allow,Deny
Allow from All
</Directory>
#
=============================================================================
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/sage.phil4.com.cert
SSLCertificateKeyFile /etc/apache2/ssl/sage.phil4.com.private_key
SSLCertificateChainFile /etc/apache2/ssl/sage.phil4.com.int_cert
#
=============================================================================
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
#
=============================================================================
</VirtualHost>