Hi all. I'm loving FlatPress, but I've got a problem running my blog behind a reverse proxy.
My server is running at my house so I control everything. Connecting to FlatPress within my network works fine (e.g. http://192.168.1.100/blog), but when I try to connect from the external domain (e.g. http://blog.domain.com) through the proxy, the blog connects okay but CSS doesn't work and all links forward to the internal network IP.
This happens routinely when configuring websites with my setup. Generally, I only need to tell an install to make the site URL " / " because the reverse proxy drops traffic right into the site's root directory and doesn't need the website to specify a URL, but I can't make it work with FlatPress. I've tried re-running the installer several times with different URL settings, and I've even tried editing the PHP files directly, but nothing seems to change the site's behavior.
What can I do to get things working? Thanks in advance for your help.
Running FlatPress behind a reverse proxy
Re: Running FlatPress behind a reverse proxy
are you using nginx ?
Proudly using flatpress https://www.mypoppy.uk/blog
- fraenkiman
- Posts: 115
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: Running FlatPress behind a reverse proxy
Hello mike,
welcome on board.
Does the reverse proxy and the web server at your home actually use HTTP (port 80)? Does the problem still exist if you use HTTPS (port 443)?
I recommend you to check the accessibility with these tools. Also check the following points. Feel free to give feedback here.
With best regards
Frank
welcome on board.
Does the reverse proxy and the web server at your home actually use HTTP (port 80)? Does the problem still exist if you use HTTPS (port 443)?
I recommend you to check the accessibility with these tools. Also check the following points. Feel free to give feedback here.
With best regards
Frank
My
Re: Running FlatPress behind a reverse proxy
Hi,
did you try to simply set your FlatPress blog URL to https://blog.domain.com ?
All the best,
Arvid
did you try to simply set your FlatPress blog URL to https://blog.domain.com ?
All the best,
Arvid
Helpful FlatPress links: Project blog
- FlatPress wiki
- FlatPress@Twitter
- FlatPress@Mastodon 
Stay up to date with our feeds: Forum RSS feed
- Project blog RSS feed 
Feel free to say Thank you: Donate
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4 
Stay up to date with our feeds: Forum RSS feed
Feel free to say Thank you: Donate
Who is online
Users browsing this forum: No registered users and 0 guests