This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

Help with httpd.conf file contents

ozstar

Fri Mar 13, 2020 9:14:09 pm

After so much time spent trying to get the final php/mySQL set up for a web server not going anywhere, I decided to I set up Xampp.

It seems all okay except I cannot still get to my websites from the bowser.

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.

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 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.

Thank you for your help.