-
Notifications
You must be signed in to change notification settings - Fork 43
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
[Mediawiki] Serve website + wiki #959
Comments
Could you check the following guide for creating a custom PHP application: https://docs.bitnami.com/aws/infrastructure/lamp/administration/create-custom-application-php/ |
@mdhont unfortunately, it doesn't work |
Could you be more specific? Which error are you getting? Can you check the redirections with curl:
|
I keep being redirected to the wiki.
|
Did you specify the servername in the virtualHost section?
|
Yep, but with no result. I'm not expecting you're gonna check all the conf files, but if they can help... /opt/bitnami/apache/conf/httpd.conf.txt |
Could you run the bndiagnostic tool instead?
Please share the code that shows at the end of the output. |
Here it is: |
|
Hi @cionz0, I think I know what the problem is. The mediawiki conf files (mediawiki-vhost.conf and mediawiki-https-vhost.conf) files set the following lines at the beginning
That means that those VirtualHosts are valid for www.example.com and all (*) domains. That's why you continue accessing Mediawiki when using your other domain *****zo.com. Could you please update the Mediawiki's files to define the domains you use to access that application and restart Apache for the changes to take effect? |
Hi @jotamartos just to be clear, you’re suggesting to replace www. example.com with (the real value of) www.MYDOMAIN.com everywhere, right? I’ll give it a try in the next days, but I don’t understand why it would solve the problem: |
Yes, www.example.com needs to be replaced with your own domain.
The
|
Thanks for explaining. I applied the suggested changes (and restarted services via ctlscript), but I still get redirected to the wiki. I've run again the bndiagnostic-tool and this is the returned code: |
Please note that you need to remove the ServerAlias * parameter from all vhosts. |
Commented it out ( |
You could add rewrite tracing to figure out what is happening:
And then check the Please note that this will slow down server performance and is only for debugging issues. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
I'm running the Mediawiki Virtualbox image and I've set a domain name for the machine so that now the wiki responds to say mydomain.com.
I've enabled both non-www to www and HTTP to HTTPS redirection.
Other than the wiki, I want to serve additional web pages. According to the docs, putting them in
/opt/bitnami/apache/htdocs/
would suffice, but it does not:I want to access web pages stored in
/opt/bitnami/apache/htdocs/
when trying to access mydomain.com, while the wiki to be served under mydomain.com/wiki[/Main_Page].How should I proceed?
The text was updated successfully, but these errors were encountered: