Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
usart Posted July 10, 2016 Posted July 10, 2016 I'm migrating a site to IPS piece by piece. The first step is forum. I tested deployment on subdomain (like new.domain.com) and now stuck with configuration to launch in live on domain.com. All pages are loaded ok, but ajax requests are not. For instance on private messages page (domain.com/messenger) when I click on another message to view, I see this instead of message text: {"redirect":"http:\/\/domain.com\/?index.php?app=core&module=messaging&controller=messenger&csrfKey=afa0131d0145adbf2028d14a4b51a2a6&id=732&page=1","message":""} I have IPS 4.1.13.1 configured in docker container and the rest of site in host's apache. I have the following configuration: /etc/apache2/sites-enabled/domain.com: (172.18.0.2 - docker containser's ip) <Location "/index.php"> ProxyPass http://172.18.0.2 ProxyPassReverse http://172.18.0.2 </Location> <LocationMatch "^/(activity|administration|announcement|applications|attachments|blogs|contact|discover|followed|forums|gallery|guidelines|ignore|language|login|logout|lostpassword|markallread|messenger|modcp|new-content|notifications|online|privacy|profile|register|search|settings|staff|submit|tags|terms|themes|unsubscribe|uploads|users)"> ProxyPreserveHost On ProxyPassMatch http://172.18.0.2 ProxyPassReverse http://172.18.0.2 </LocationMatch> /home/user/domain.com/public_html/.htacces: (I need this because IPS sometimes generates urls like domain.com/?app=core without specifying page and by default it's being handled by old site's default page home.php) RewriteEngine On RewriteCond %{QUERY_STRING} app=core RewriteRule ^home.php index.php What I missed?
usart Posted July 10, 2016 Author Posted July 10, 2016 14 hours ago, usart said: What I missed? I forget about ProxyPreserveHost in first Location section. Problem solved
Recommended Posts
Archived
This topic is now archived and is closed to further replies.