 |
|
 |
|
Next: Virtual Domain and host info in http request
|
| Author |
Message |
External

Since: May 31, 2004 Posts: 4
|
(Msg. 1) Posted: Mon May 31, 2004 9:50 pm
Post subject: Apache and alias, forbidden Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hi all,
i'm a newbie and i need a little help.
I installed a Mandrake 10 server and i'd like to add a new directory
where to put my websites, e.g. /home/samba/public/www.
So, i added an alias in the default server configuration defined as:
<IfModule mod_alias>
....
Alias /www /home/samba/public/www
....
</IfModule>
Then, i added 'per directory' options like:
<Directory "/home/samba/public/www">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
Allow from all
</Directory>
If i ask to go to http://www.xxx.com/www i always get the reply:
You don't have permission to access /www on this server.
How could i solve this problem?
Thank you in advance for your help.
Emanuele >> Stay informed about: Apache and alias, forbidden |
|
| Back to top |
|
 |  |
External

Since: May 24, 2004 Posts: 25
|
(Msg. 2) Posted: Tue Jun 01, 2004 2:29 am
Post subject: Re: Apache and alias, forbidden [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Emanuele Giglio" <e.giglio-WE.HATE.SPAM.DeleteThis@smartwarenet.com> wrote in message
news:Xns94FAD3FE41842egiglioWEHATESPAMsma@195.31.190.131...
> Hi all,
> i'm a newbie and i need a little help.
> I installed a Mandrake 10 server and i'd like to add a new directory
> where to put my websites, e.g. /home/samba/public/www.
>
> So, i added an alias in the default server configuration defined as:
>
> <IfModule mod_alias>
> ...
> Alias /www /home/samba/public/www
> ...
> </IfModule>
>
> Then, i added 'per directory' options like:
> <Directory "/home/samba/public/www">
> Options FollowSymLinks Indexes
> AllowOverride All
> Order deny,allow
> Allow from all
> </Directory>
>
> If i ask to go to <a style='text-decoration: underline;' href="http://www.xxx.com/www" target="_blank">http://www.xxx.com/www</a> i always get the reply:
> You don't have permission to access /www on this server.
>
> How could i solve this problem?
Any relavant lines from your error_log would be useful.
>
> Thank you in advance for your help.
>
> Emanuele<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache and alias, forbidden |
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2907
|
(Msg. 3) Posted: Tue Jun 01, 2004 7:52 am
Post subject: Re: Apache and alias, forbidden [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Emanuele Giglio <e.giglio-WE.HATE.SPAM RemoveThis @smartwarenet.com> wrote:
> If i ask to go to <a style='text-decoration: underline;' href="http://www.xxx.com/www" target="_blank">http://www.xxx.com/www</a> i always get the reply:
> You don't have permission to access /www on this server.
Check the permission in the directory/files, the directory
need to be 755 and also all the previous directories need to
have the same permissions, the files need to be 644, if you didn't
specified an index.html in the directory you need to enable
directory browsing (Options +Indexes).
Davide
--
| My opinions may have changed, but not the fact that I am right.
|
|
|<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache and alias, forbidden |
|
| Back to top |
|
 |  |
External

Since: May 31, 2004 Posts: 4
|
(Msg. 4) Posted: Wed Jun 02, 2004 9:33 am
Post subject: Re: Apache and alias, forbidden [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Kieran Simkin" <kieran.TakeThisOut@digital-crocus.com> wrote in
news:FdPuc.1582$uQ3.1359@newsfe4-gui:
> Any relavant lines from your error_log would be useful.
This is the last line in my log:
[Wed Jun 02 08:28:25 2004] [error] [client 80.182.16.58] client denied by
server configuration: /home/www
Thank you again for your help.
Emanuele<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache and alias, forbidden |
|
| Back to top |
|
 |  |
External

Since: May 31, 2004 Posts: 4
|
(Msg. 5) Posted: Wed Jun 02, 2004 9:37 am
Post subject: Re: Apache and alias, forbidden [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Davide Bianchi <davideyeahsure.RemoveThis@onlyforfun.net> wrote in news:2i2gclFi8npsU1
@uni-berlin.de:
> Check the permission in the directory/files, the directory
> need to be 755 and also all the previous directories need to
> have the same permissions, the files need to be 644, if you didn't
> specified an index.html in the directory you need to enable
> directory browsing (Options +Indexes).
Grazie Davide.
I did as you say but the result is the same. I sent the last line of the
log file in a previous post to Kieran Simkin.
Are you italian? From?
See you...<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache and alias, forbidden |
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2907
|
(Msg. 6) Posted: Wed Jun 02, 2004 9:41 am
Post subject: Re: Apache and alias, forbidden [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Emanuele Giglio <e.giglio-WE.HATE.SPAM.RemoveThis@smartwarenet.com> wrote:
> I did as you say but the result is the same. I sent the last line of the
> log file in a previous post to Kieran Simkin.
Just noticed that you have "Order deny,allow" and then "Allow from all".
The "order" but should be reversed: "Order deny,allow".
Davide
--
| A bore is someone who persists in holding his own views after we have
| enlightened him with ours.
|
|<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache and alias, forbidden |
|
| Back to top |
|
 |  |
External

Since: May 31, 2004 Posts: 4
|
(Msg. 7) Posted: Wed Jun 02, 2004 9:49 am
Post subject: Re: Apache and alias, forbidden [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Davide Bianchi <davideyeahsure.DeleteThis@onlyforfun.net> wrote in
news:2i5b5dFjcqrkU4@uni-berlin.de:
> Just noticed that you have "Order deny,allow" and then "Allow from
> all". The "order" but should be reversed: "Order deny,allow".
Done but... same as above.
Thank you  <!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Apache and alias, forbidden |
|
| Back to top |
|
 |  |
| Related Topics: | Apache - Alias - hey:), Problem in configuration. So, concretes: I have 2 (or more) directories outside of htdocs tree, for example: d:\directory1 e:\directory2 how can i obtain listing like that after request http://localhost/download/ Index of /dirs Name ...
Apache (win32) - Alias [?] - hey:), Problem in configuration. So, concretes: I have 2 (or more) directories outside of htdocs tree, for example: d:\directory1 e:\directory2 how can i obtain listing like that after request http://localhost/download/ Index of /dirs Name ...
Apache 2.0.48 disk_cache_module problem: Directory index f.. - After hours running apache, disk_cache suddenly causes my root directory index file (htm) not to load anymore. So I get the error: 'Directory index forbidden by rule:' when trying to access 'mysite.com' without /index.htm. That's right, I forbid root..
Virtual host? Alias? Linux/Windows/Apache dev servers prob.. - I'm maintaining a bunch of websites in ASP/PHP/ColdFusion, etc. (I love the syntactic punishment ;-). I have two dev servers: an XP/IIS box for ASP/ColdFusion, and a Redhat/Apache box for PHP, both behind a router sharing files. Currently I must port..
an alias for use a dll as a cgi ! - Hello, I don't find this option in Apache : how to use a .dll and alias it as a .cgi. Example :I want "azerty.dll" to be alias and named "azerty.cgi" in httpd.conf. I found it on Alibaba server : it names DLL alias you enter an Alia... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|