Enable sites in localhost doesn't work
I'm trying to enable an other site in my localhost without success. I
already have this file like /etc/apache2/sites-avaiable/itransformer.conf:
<VirtualHost *:80>
ServerName itransformer
DocumentRoot /home/manolo/MiServer/itransformer/web
<Directory /home/manolo/MiServer/itransformer/web/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
and it works right. But when I try to add a site, it doesn't work. I copy
the same file:
$ sudo cp itransformer.conf itransformer-2.0.conf
And modify the file like this:
<VirtualHost *:80>
ServerName itransformer-2.0
DocumentRoot /home/manolo/MiServer/itransformer-2.0/web
<Directory /home/manolo/MiServer/itransformer-2.0/web/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Then, I eneble the site:
$ sudo a2ensite itransformer-2.0.conf
And restart the server:
$ sudo service apache2 restart
And it should work when I put itransformer-2.0 in the browser, but does
nothing.
No comments:
Post a Comment