ndaval
August 8th, 2013, 02:25 PM
Hi there
Don't get me wrong, I'm not another lazy guy who ask help before lookin for the solution.
I've read many threads, tried many things but I still have the same pb
I've installed apache2 which works fine.
I've configured a virtual host but it still render the default configuration. It's like my DocumentRoot is not set (which is not the case).
/etc/hosts
127.0.0.1 localhost
127.0.0.1 mysite.dev
...
/etc/apache2/sites-available/mysite.conf
<VirtualHost *:80> ServerAdmin me@mysite.dev
DocumentRoot /var/www/mysite/public
ServerName mysite.dev
ServerAlias *.mysite.dev
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/mysite/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Where /var/www/mysite is a symlink to /home/me/web/mysite where my html files are
The site has been enabled with a2ensite and it is the only one (the default is disabled) and, of course, I've reloaded apache
At this point, I don't know what I'm doing wrong
Any help would be much appreciated
Thank you
Nicolas
Don't get me wrong, I'm not another lazy guy who ask help before lookin for the solution.
I've read many threads, tried many things but I still have the same pb
I've installed apache2 which works fine.
I've configured a virtual host but it still render the default configuration. It's like my DocumentRoot is not set (which is not the case).
/etc/hosts
127.0.0.1 localhost
127.0.0.1 mysite.dev
...
/etc/apache2/sites-available/mysite.conf
<VirtualHost *:80> ServerAdmin me@mysite.dev
DocumentRoot /var/www/mysite/public
ServerName mysite.dev
ServerAlias *.mysite.dev
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/mysite/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Where /var/www/mysite is a symlink to /home/me/web/mysite where my html files are
The site has been enabled with a2ensite and it is the only one (the default is disabled) and, of course, I've reloaded apache
At this point, I don't know what I'm doing wrong
Any help would be much appreciated
Thank you
Nicolas