Help with contents of httpd.conf file in Apache2
by ozstar from LinuxQuestions.org on (#50PNX)
I have Zorin 15.2 (Ubuntu 18.4)
After so much time spent trying to get the final standalone php/mySQL set up for a web server not going anywhere, I decided to I set up Xampp.
It seems all okay, except I still cannot get to my websites from the browser.
Quote:
It seems it is just being redirected to my sites from the server root and my guess is it is something to do with the httpd files.
For oen of my multi sites, I have this the httpd-vhosts.conf at /opt/lampp/etc/extra
Code: <VirtualHost *:80>
ServerAdmin webmaster@sydneybiz.com
DocumentRoot "/opt/lampp/htdocs/myownofficeserver/"
ServerName myownofficeserver.com
ServerAlias http://www.myownofficeserver.com
ErrorLog "logs/myownofficeserver-error_log"
CustomLog "logs/myownofficeserver-access_log" common
</VirtualHost>but do I need to enter anything in the httpd.conf file in /opt/lampp/etc.
I can't seem to find anything out there to answer this.
This is the default httpd.conf that came with xampp.
Code: Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"
<Directory "/opt/lampp/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>When I enter the domain name outside of the LAN I still get to the Apache/Dashboard page, not the index of my dom.
Is it because of anything above, or could it be something else. I have checked everything I know how to do.
Main thing is what do I need in the httpd.conf file
Thanks in anticiaption


After so much time spent trying to get the final standalone php/mySQL set up for a web server not going anywhere, I decided to I set up Xampp.
It seems all okay, except I still cannot get to my websites from the browser.
Quote:
localhost/mysite gets me to the site okay but shows the directories not the index html page. mysite.com gets me to the Xampp Success Page not teh index.html. |
For oen of my multi sites, I have this the httpd-vhosts.conf at /opt/lampp/etc/extra
Code: <VirtualHost *:80>
ServerAdmin webmaster@sydneybiz.com
DocumentRoot "/opt/lampp/htdocs/myownofficeserver/"
ServerName myownofficeserver.com
ServerAlias http://www.myownofficeserver.com
ErrorLog "logs/myownofficeserver-error_log"
CustomLog "logs/myownofficeserver-access_log" common
</VirtualHost>but do I need to enter anything in the httpd.conf file in /opt/lampp/etc.
I can't seem to find anything out there to answer this.
This is the default httpd.conf that came with xampp.
Code: Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"
<Directory "/opt/lampp/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>When I enter the domain name outside of the LAN I still get to the Apache/Dashboard page, not the index of my dom.
Is it because of anything above, or could it be something else. I have checked everything I know how to do.
Main thing is what do I need in the httpd.conf file
Thanks in anticiaption