I would like keep restrictions on admin folder of my project, for that I've made changes for virtual host configuration as follows
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/project_root/application/admin>
Options Indexes FollowSymLinks MultiV
if I do it this way: it works
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
drwxr-xr-x 2 root root 4096 nov 6 15:27 www
but if I do this: does not
I recently switched to Linux (Ubuntu 12.10) and am running a LAMP server for development.
I created a virtual host, and I'm able to access all files under www. The problem is that I cannot access any subdirectories of www. I am used to WAMP where those folders were available in the index of localhost.
Below you can see the config for the virtual host.
after trying to enable mercurial apache web access on my Ubuntu Server 12.04 box, I've got a 403 Forbidden error when accessing http://my.site.com/mercurial with log:
[Tue Sep 04 01:20:22 2012] [error] [client X.X.X.X] client
denied by server configuration: /mercurial/hgweb.cgi
I have added this to /etc/apache2/sites-available/default
ScriptAliasMatch ^/mercurial(.*) /mercurial/hgweb
I need to add a temporary alias so I can reference a file that doesn't yet exist on another server.
I've the below config to my /etc/apache2/sites-available/mysite file:
Alias http://website.com/js/folder/ "/var/www/vhosts/website/path/to/folder/"
<Directory "/var/www/vhosts/website/path/to/folder/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
I trying to get my SSL certificate to work with apache2 on ubuntu.
Chrome gives me just the error:
Error 102 (net::ERR_CONNECTION_REFUSED):
On this config:
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride
I was setting my local Apache server to run Python cgi, then I came with the following error:
Forbidden
You don't have permission to access /hw10/main.cgi on this server.
What I've changed on my http config file was:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
I have been trying to setup SSL virtual host
ServerAdmin webmaster@mts.com
ServerName moclm.tap.pt
DocumentRoot /var/www/tapme/
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
<Directory /var/www/tapme/>
I've just set up a aws ubuntu instance, I have apache2, mysql-server etc and have configured a vhost, added it to apache and restarted apache.
My virtual host config is:
<VirtualHost *:80>
ServerAdmin ss@ss.com
ServerName mysite.ec2-xx-xx-xx-xx.compute-1.amazonaws.com
DocumentRoot /mnt/my_site
<Directory />
Options FollowSymLinks
AllowOverride