Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Services (Apache, MariaDB, MySQL…)
bndiagnostic ID: 19ac6e87-9c21-1f73-f8f4-6cd14923cf53
bndiagnostic output:
? Apache: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
bndiagnostic failure reason: The suggested guides are not related with my issue
Description:
This is a continuation of a question I didn’t get to complete before I was called away to work on another project. Please view: Trying to set up many virtual hosts on one server
Jota told me where to put the virtual hosts file, but did not answer the question about whether what I had in the hosts file would work. It appears to not be working, and I don’t know where to look next.
The format I have:
…
## vaddhost: (mywebsite.org) at *:80
<VirtualHost *:80>
ServerName mywebsite.org
ServerAlias www.mywebsite.org
ServerAdmin root@mywebsite.org
DocumentRoot "/opt/bitnami/apache/htdocs/mywebsite.org"
CustomLog "/opt/bitnami/apache/logs/mywebsite.org-access_log" combined
ErrorLog "/opt/bitnami/apache/logs/mywebsite.org-error_log"
</VirtualHost>
…
The format in your sample file.
…
<VirtualHost 127.0.0.1:80 _default_:80>
ServerAlias *
DocumentRoot /opt/bitnami/projects/sample
<Directory "/opt/bitnami/projects/sample">
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
…
What I have doesn’t seem to be working. An attempt combine the two didn’t work either:
…
## vaddhost: (mywebsite.org) at *:80
<VirtualHost 127.0.0.1:80>
ServerName mywebsite.org
ServerAlias www.mywebsite.org
ServerAdmin root@mywebsite.org
DocumentRoot "/opt/bitnami/apache/htdocs/mywebsite.org"
CustomLog "/opt/bitnami/apache/logs/mywebsite.org-access_log" combined
ErrorLog "/opt/bitnami/apache/logs/mywebsite.org-error_log"
<Directory "/opt/bitnami/apache/htdocs/mywebsite.org">
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
…
I am stuck trying to get the 18 or so virtual hosts to work on the new server (LAMP packaged by Bitnami 8.0.15-1). I even tried changing the ServerName in httpd.conf to localhost:80 and that didn’t work.
Please review the virtual host code above and show me where I’ve gone wrong. Thank you!