Ângelo Rigo
Ângelo Rigo

Reputation: 2159

Enable Apache serve of one specific directory under a web domain

How can i enable access to one specific directory : www.mysite.com/mydir

Today i try to access but i get a 403 forbidden message.

Forbidden
You don't have permission to access /mydir/index.html on this server.

There is an .htaccess file i can drop into the mydir directory to enable the index.html fiel to be served by apache server ?

Upvotes: 0

Views: 32

Answers (1)

Pavel Samsonov
Pavel Samsonov

Reputation: 103

In shell:

$ chmod 755 mydir
$ chmod -R go+r mydir

Upvotes: 1

Related Questions