-
Notifications
You must be signed in to change notification settings - Fork 47
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
[LAMP] Redirect #1711
Comments
That question is related to a custom configuration in your deployment. Please check all vhost files under /opt/bitnami/apache/conf/vhosts and ensure that they all configure the ServerName and ServerAlias parameters as needed. Also check if there is any redirection in place in those files. |
@jotamartos everything is set correctly. Would you like me to share screenshots? |
You have many custom virtual hosts files in the instance, what's the domain with the problem? The output of this command should help you debug the issue.
I can see you also have cloudflare in front of the deployment, you should review that configuration as well
|
Thanks @jotamartos
For
For www.mercury.org.in not sure why it is redirecting. |
It's WordPress what is redirecting your requests, please take a look at the WordPress configuration
|
Thanks @jotamartos |
You will need to take a look at the wp-config.php file and any plugin you have that may be redirecting the requests. |
Hi @jotamartos Below is the new BN Code: I had one question. The 2 conf files located at |
Please run the curl command to see what is redirecting you to the non-www domain. If you get redirected, please take a look at the vhosts files to see which one is performing the redirection.
bitnami:bitnami is fine. Apache runs as daemon, you can also use bitnami:daemon if required. |
Hi @jotamartos |
Hi @huzanf, I can see WordPress is still redirecting the request
That means that the requests to mer****.org.in goes to a WordPress site which is configured with the other domain. If that request shouldn't go to that WordPress, please take a look at all vhosts files and configure the ServerName and ServerAlias liens properly. If that WordPress is the correct one to handle the requests, review the app's configuration. Please note that reviewing your configuration is out of the scope of this support forum, this is not an issue related with the Bitnami deployment and configuration. Please take a look at the Apache's and WordPress' configuration files and make any necessary change to make it work the way you want. |
Hi @jotamartos I have multiple websites on my instance. All websites have their individual vhosts. Is there any issue with that? |
Hi @jotamartos If the vhosts are commented, how is the website even loading? Here's the new support tool code Can you help me with the connectivity issue?
[Connectivity] Server ports 22, 80 and/or 443 are not publicly accessible. Please check the https://docs.bitnami.com/general/faq/administration/use-firewall/ [Apache] Found recent error or warning messages in the Apache error log.
Please check the following guide to troubleshoot server issues: https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-erro [Resources] Your instance has little available RAM memory.
You could try to increase your instance's memory. Please check your cloud ===== End of bndiagnostic tool output ===== |
Hi @huzanf, I can see the entire vhost file for the mer****.org.in domain is commented. That means that Apache knows nothing about that domain. When you perform the request, Apache uses the first virtual host it finds, in this case the one for fdu***.com. Please uncomment and configure the vhost for the mer****.org.in domain. As I mentoned above, this is a question related to Apache, not to the Bitnami deployment and configuration. If you need further help, please ask in Stack Overflow or find someone in your community who can help you with your configuration. |
@jotamartos |
That's probably a false positive. If you can access your site using the IP/domains, that means that connectivity is fine so you shouldn't worry about that. |
Platform
AWS
bndiagnostic ID know more about bndiagnostic ID
36086671-560b-4dd1-d8af-0fb315c064a1
bndiagnostic output
===== Begin of bndiagnostic tool output =====
[Connectivity]
Server ports 22, 80 and/or 443 are not publicly accessible. Please check the
following guide to open server ports for remote access:
https://docs.bitnami.com/general/faq/administration/use-firewall/
[Apache]
Found recent error or warning messages in the Apache error log.
Press [Enter] to continue:
Please check the following guide to troubleshoot server issues:
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-erro
rs-apache/
Press [Enter] to continue:
[Resources]
Your instance has little available RAM memory.
You could try to increase your instance's memory. Please check your cloud
provider's documentation for more information.
===== End of bndiagnostic tool output =====
bndiagnostic was not useful. Could you please tell us why?
NA
Describe your issue as much as you can
Hi,
I recently setup a new website on my LAMP stack. I have also mapped the domain to my IP. However, when I hit the domain, for some reason it get's redirected to one of the other websites that is there on my server. Kindly assist.
The text was updated successfully, but these errors were encountered: