Jump to content

Hosting IPS together with another site in one domain


Recommended Posts

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?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...