0
I’m using the Apache 2 in the Ubuntu 14.04. I moved the folder www/html
to my other partition /media/Dados/www
. But that’s not the problem.
The problem starts when setting a vhost to a subdirectory:
Subdirectory: /media/Dados/www/ak-vitrine
Archive on websites-available:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName ak-vitrine.dev
ServerAlias www.ak-vitrine.dev
DocumentRoot "/media/Dados/www/AK-Vitrine"
<Directory "/media/Dados/www/AK-Vitrine">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
When accessing http://ak-vitrine.dev it shows me the folder list of the root folder /media/Dados/www/
. How to solve?
Since I’m no expert on the subject (and I’m still crawling with Linux), try: 1) Give a name to Virtualhost:
<VirtualHost akvitrine.localhost:80>
2) Remove the Options. Additionally, if you come to face some Forbiddens (like me) add Require all granted within the<Directtory>
. Ah! And remember that *Nix environments are case-sensitive, soon ak-showcase is different from AK-Vitrine– Bruno Augusto
Neither the Virtualhost nickname nor removing Options worked =/
– Alex Kleinubing
Solution found, posted the answer :) Thanks for the help Bruno, it was with her that came the idea.
– Alex Kleinubing