You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Prieto <pr...@cse.usf.edu> on 2005/10/07 16:25:09 UTC

[users@httpd] enable .htaccess on virtual host

Hi all,
I want to enable ".htaccess on my virtual host but I don't seem to get 
it working but it is enable outside the virtual host. Here is my 
httpd.conf and ssl.conf.
I need you help.

httpd.conf:

<Directory />
     Options Indexes FollowSymLinks
     AllowOverride All
</Directory>
<Directory "/var/apache/docs">
     Options Indexes FollowSymLinks MultiViews
     AllowOverride All
     Order allow,deny
     Allow from all
</Directory>


ssl.conf:
<VirtualHost xxx.xxx.x.xx:443>

#   General setup for the virtual host
DocumentRoot "/var/apache/docs/virtualhost/"
ServerName virtualhost.com
ServerAdmin root@host.com
ErrorLog /var/apache/logs/virtualhost-error_log
TransferLog /var/apache/logs/virtualhost-access_log
ScriptAlias /cgi-bin/ "/var/apache/docs/virtualhost/cgi-bin/"
AddHandler cgiwrap .cgi
         <Directory "/var/apache/docs/virtualhost/cgi-bin">
                 AllowOverride All
                 Options Indexes FollowSymLinks ExecCGI
                 SetHandler cgi-script
                 Order allow,deny
                 Allow from all
         </Directory>

-- 
Daniel Prieto
Phone: 813-974-3307
Fax: 813-974-5456
University of South Florida
CS&E Dept. Sys Admin
Check CSE FAQ! <http://www.cse.usf.edu/staff/techSupport/index.htm>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] enable .htaccess on virtual host

Posted by Joshua Slive <js...@gmail.com>.
On 10/7/05, Daniel Prieto <pr...@cse.usf.edu> wrote:
> Hi all,
> I want to enable ".htaccess on my virtual host but I don't seem to get
> it working but it is enable outside the virtual host. Here is my
> httpd.conf and ssl.conf.

You'll need to start by specifying exactly what you are trying to do
with .htaccess and exactly what happens when you try it.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org