I successfully run one website on apache2 using a tutorial.
My second website, I can't reach locally, and I don't know why.
Here are the steps I follow :
- copy my website to folder
/data/mywebsite
- create symlink to
/var/www/mywebsite
- configurate
/etc/apache2/sites-available/mywebsite
like this :
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName localhost
DocumentRoot /var/www/mywebsite
<Directory /var/www/mywebsite>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
now I enable this page using apache2 and then restart apache2
sudo a2ensite mywebsite
sudo service apache2 restart
but instead of my page, I only see my www folder.
I guess I linked something wrong. Is it necessary to have this slash /
behind mywebsite
or something ?
I tried EVERYTHING that I can think of for some hours now.
I also tried to run it on different port and adding a Port to my apache2 ports.conf
.
still no success.
Any advice would be most helpful.