Quantcast
Viewing all articles
Browse latest Browse all 37

I am struggling to redirect on self hosted

I am hosting on my own local network, static ip and have Apache2 with an httpd.conf file redirecting things.

So I have a remote url eg "labs.media.com/rss" which redirects to my static home server at 144.x.xx.xx this is picked up by Apache and is rerouting based on the /rss with some re-write conditions.

    # Redirect /freshrss to 192.168.20.35:8080
    RewriteCond %{REQUEST_URI} ^/rss
    RewriteRule ^/rss(.*)$ http://192.168.20.35:8080$1 [P,L]

    ProxyPass /rss http://192.168.20.35:8080/
    ProxyPassReverse /rss http://192.168.20.35:8080/`

I have tried all manner of conditions and re-writes to .

The page re-writes to 144.x.xx.xx/i/?rid=6736e57c90d3c URL Not Found

BUT if I manually change it to 144.x.xx.xx/rss/i/?rid=6736e57c90d3c then it works.

The problem is I can not change the rewrite conditions in the apache config to include the /rss as this means the landing site is not found.

So I included an apache config inside the Docker as suggested and ensured this was included to change the root however this also did not work.

Very confused here is someone could provide some insight please?

Alias /rss /var/www/FreshRSS

<Directory /var/www/FreshRSS>
    Options FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
DocumentRoot /var/www/FreshRSS

Viewing all articles
Browse latest Browse all 37

Trending Articles