Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
CreatorsHub Posted January 29, 2018 Posted January 29, 2018 Hello, I currently have IPS running on the root of the Domain. My current setup is HAProxy -> Nginx -> PHP-FPM My current HAProxy config frontend http bind *:80 option http-server-close http-request set-header X-Client-IP %[src] http-request redirect prefix http://%[hdr(host),regsub(^www\.,,i)] code 301 if { hdr_beg(host) -i www. } default_backend community-backend backend landing-backend server landing-1 10.0.0.1:80 check backend community-backend server community-1 10.0.1.1:80 check server community-2 10.0.1.2:80 check My current Nginx config server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /var/www/html; index index.php index.html index.htm; server_name localhost; client_max_body_size 16m; location / { # try_files $uri $uri/ /index.php?q=$uri&$args; try_files $uri $uri/ /index.php; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } location ~ /\.ht { deny all; } } Now if i change the backends in my haproxy to this and change the board_url in my IPS config: frontend http bind *:80 option http-server-close http-request set-header X-Client-IP %[src] http-request redirect prefix http://%[hdr(host),regsub(^www\.,,i)] code 301 if { hdr_beg(host) -i www. } acl url_community path_beg /community use_backend community-backend if url_community default_backend landing-backend backend landing-backend server landing-1 10.0.0.1:80 check backend community-backend reqrep ^([^\ :]*)\ /community/?(.*) \1\ /\2 server community-1 10.0.1.1:80 check server community-2 10.0.1.2:80 check Then I can visit domain.com/community and get to my community but i encounter the following errors: It gives me a 404 no matter what page i visit. Sometimes it redirect me from domain.com/community/{IPS STUFF} too domain.com/{IPS Stuff} (This is caused by the removal of the /community in the request forwarding to Nginx. Nginx is effectively listening on domain.com/ from it perspective. And IPS is not evaluating the board_url for location header redirects) Has anyone a similar setup and can share a bit of information on his configuration? --- I just recently bought Pages and this might be sufficient enough to build a landing page on the root. I imagen this is how invision has their setup? IPS on root, Pages on / and Forums on /forums/* Is it possible to run this setup with the forum link as /community? Are there any resources explaning how to setup IPS like this?
AlexWright Posted January 29, 2018 Posted January 29, 2018 1 hour ago, CreatorsHub said: I just recently bought Pages and this might be sufficient enough to build a landing page on the root. I imagen this is how invision has their setup? IPS on root, Pages on / and Forums on /forums/* Is it possible to run this setup with the forum link as /community? Are there any resources explaning how to setup IPS like this? Hi there! This is possible out of box. Place all of the files into your root folder, including pages and forums. In /applications/forums/data/ change the furl.json to have "community" as the top-level. Make pages your primary application in the ACP (tick the Star icon on it). Should work... Regards.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.