You are here
Hey Guys,
After running some years on turnkey magento debian linux 7, hosting multiple websites as follows:
in /var/www i am running the magento site ( default setup of turnkey magento ).
in /var/vhosts i have like 3 folders with the other websites running.
Now, it is time for security issues to go to latest version, wich i tought let's start over on a new server on a LAMP turnkey package.
As for debian linux 8 aka Jessie, some things are definately changed in preparing Vhosts.
like first the vhost was like this:
DocumentRoot /var/vhosts/example
ServerName www.example.com
ServerAlias example.com *.example.com
<Directory "/var/vhosts/example">
allow from all
Options +Indexes
</Directory>
now it is like:
DocumentRoot "/var/www/example"
ServerName www.example.com
ServerAlias example *.example.com
ServerAdmin webmaster@localhost
<Directory "/var/www/example">
allow from all
Options None
Require all granted
</Directory>
As i install let's say a wordpress site and go to "192.168.2.1/example'' the webiste works correct.
As i go to www.example.com from outside i get:
Forbidden - You don't have permission to access / on this server
in the apache log i get these lines:
Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions
This is for all 4 websites the same, one website on magento it shows the frontpage, with weird css, but if you click on a link, it is dead.
I have searched for a week now in many forums, but unable to solve this issue.
Does anybody have a clue ?
i am really clueless.
Have great holidays all :)
cheers.
TBH I'm not 100% sure on specifics
So long as your permissions are set right and you make the relevant changes from your old config, it should work just as well (probably better) on your new server as it did on the old one.
I suggest that you consult the official Apache docs: https://httpd.apache.org/docs/2.4/upgrading.html
And/or Digital Ocean also have a doc page on it: https://www.digitalocean.com/community/tutorials/migrating-your-apache-c...
Hope that helps.
Add new comment