Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use different context url ? #25

Open
CondormanFr opened this issue Jun 12, 2019 · 1 comment
Open

How to use different context url ? #25

CondormanFr opened this issue Jun 12, 2019 · 1 comment

Comments

@CondormanFr
Copy link

Thank you very munch for this project that is really easy to setup.
But in my case, I have an issue because I 'm replacing an existing instance of mediawiki and this one was accessible with an url of kind http://www.domain.com/wiki
I installed it on a server who give access to many application so I have an nginx reverse proxy in front of your project with configuration like :

    location /wiki/ {
            proxy_pass http://mediawiki-wiki:8080/;
            
    }  

But it does not work because with the nginx from your mediawiki setup. I get many redirection.

I tried many things by changing MEDIAWIKI_SERVER value or adding $wgArticlePath = '/wiki/$1';
but none works.

How to solve my issue and be able to use your project behind an nginx proxy with a context url : /wiki ?

Thanks a lot.

@d8sychain
Copy link

I'd say your issue is the rewrite configured in /etc/nginx/nginx.conf for using Short URLs https://m.mediawiki.org/wiki/Manual:Short_URL. If you write your own nginx.conf you can use 'docker cp' to copy it into the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants