0

I have subdomain website http://subdomain.mywebsite.com/path which is hosted on Siteground and running on nginx server. I want the users should be able to access the above path or its subpaths through main website URL lets say http://mywebsite.com/path which is running on apache server.

I have tried to proxypass and reverseproxypass using following in apache configuration file on my main website:-

<Location "/path">
        ProxyPass "http://subdomain.mywebsite.com/path"
        ProxyPassReverse "http://subdomain.mywebsite.com/path"
    </Location>

When i access the page http://mywebsite.com/path I get 404 page of siteground whereas the same path is directly accesible using http://subdomain.mywebsite.com/path.

I have been trying to find the solution but could not get it working.

1 Answer 1

0

You can use the below configuration:

ProxyPass /path http://subdomain.mywebsite.com/path
ProxyPassReverse /path http://subdomain.mywebsite.com/path
Sign up to request clarification or add additional context in comments.

2 Comments

It did not work, error is same.
which error are you getting in the error log?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.