Rewrite Problem fixed for 3 Python apps

Annulleret Opslået Jul 9, 2015 Betalt ved levering
Annulleret Betalt ved levering

There are three application both running by python on ubuntu 14.4. they are visible as below link

IP:8181 (headphones)

IP:8081 (sickbeard)

IP:5050 (couchpotato)

i have also installed HTTPS on that server.

[url removed, login to view]

But i want to rewrite above three site in the bellow way

same IP/couchpotato -- this is working only

same IP/sickbeard -- Not working

same IP/headphones -- not working

when i want to view /sickbeard or /headphones it allways comes couchpotato page.

help me any one to solve this??

Apache config is as below --

<VirtualHost *:443>

DocumentRoot /var/www/html

SSLEngine on

SSLCertificateFile /etc/apache2/ssl/[url removed, login to view]

SSLCertificateKeyFile /etc/apache2/ssl/[url removed, login to view]

SSLCertificateChainFile /etc/apache2/ssl/[url removed, login to view]

</VirtualHost>

<VirtualHost *:443>

ServerName [url removed, login to view]

SSLEngine on

SSLCertificateFile /etc/apache2/ssl/[url removed, login to view]

SSLCertificateKeyFile /etc/apache2/ssl/[url removed, login to view]

SSLCertificateChainFile /etc/apache2/ssl/[url removed, login to view]

RewriteEngine On

RewriteRule ^/(.*) localhost:5050/$1 [L,P]

ProxyPreserveHost on

# RequestHeader add X-Vhm-Root /couchpotato

</VirtualHost>

<VirtualHost *:443>

ServerName [url removed, login to view]

SSLEngine on

SSLCertificateFile /etc/apache2/ssl/[url removed, login to view]

SSLCertificateKeyFile /etc/apache2/ssl/[url removed, login to view]

SSLCertificateChainFile /etc/apache2/ssl/[url removed, login to view]

RewriteEngine On

RewriteRule ^/(.*) localhost:8081/$1 [L,P]

ProxyPreserveHost on

# RequestHeader add X-Vhm-Root /sickbeard

</VirtualHost>

Before start pls ans this into your propsal

what is the full meaning of following line -

RewriteRule ^/(.*) http://127.0.0.1:5050/$1 [L,P]

Apache Linux Python System Administrator Ubuntu

Projekt ID: #8033003

Om projektet

4 bud Remote projekt Aktiv Jul 13, 2015

4 freelancere byder i gennemsnit $26 timen for dette job

thms00

You know me, I can do it but fnot r $15 blahblahnlahc 100 char please !!! You know me, I can do it but fnot r $15 blahblahnlahc 100 char please !!!

$50 USD in 3 dage
(26 bedømmelser)
4.3
Farsi91

I have already spotted the problem. Plain and simple! The thing is, I might be able to suggest to you some tweaks as well to the rewrite rule. Thanks.. -- Best Wishes --

$25 USD på 1 dag
(0 bedømmelser)
0.0
vpenov

I know Apache and mod_rewrite really well and I can solve your problem. I have solved it already, based on config you have posted. Answer to your question: Proxy everything from the left side to the server at UR Flere

$15 USD på 1 dag
(0 bedømmelser)
0.0