apache configuration: always go to parent directory

apache configuration: always go to parent directory

am 10.11.2009 10:43:03 von joydeep

Hello,

I have configured a personal work-space for mine in apache where I can
experiment with different sites and here is the configuration

````````````````````````````````````````````
Alias /personal/joydeep /var/personal_work_area/joydeep

DocumentRoot /var/personal_work_area/joydeep/



DirectoryIndex index.php

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all


``````````````````````````````````````````````````````````

I have placed a folder ( a site) there. So the absolute path of that
folder is /var/personal_work_area/joydeep/experiment. Whenever I access
the folder through browser by visiting
http://192.168.1.1/personal/joydeep/experimet I get "page not found
error". the log reports

``````````````````````````
URL /personal/joydeep/experiment/index.php, referer:
http://192.168.1.1/personal/joydeep/
```````````````````````````````
It is definitely wrong as it refer the parent folder and not the
subfolder "experiment" hence the index.php is missing. Is there any
problem with my configuration ?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: apache configuration: always go to parent directory

am 10.11.2009 16:11:52 von Brian Mearns

On Tue, Nov 10, 2009 at 4:43 AM, J. Bakshi wrote:
> Hello,
>
> I have configured a personal work-space for mine in apache where I can
> experiment with different sites and here is the configuration
>
> ````````````````````````````````````````````
> Alias /personal/joydeep =A0/var/personal_work_area/joydeep
>
> DocumentRoot =A0/var/personal_work_area/joydeep/
>
> =A0 =A0 =A0 =A0
>
> =A0 =A0 =A0 =A0 =A0DirectoryIndex index.php
>
> =A0 =A0 =A0 =A0 =A0 Options Indexes FollowSymLinks MultiViews
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0AllowOverride All
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Order allow,deny
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0allow from all
>
> =A0 =A0 =A0 =A0

> ``````````````````````````````````````````````````````````
>
> I have placed a folder ( a site) there. So the absolute path of that
> folder is =A0/var/personal_work_area/joydeep/experiment. Whenever I acces=
s
> the folder through browser by visiting
> http://192.168.1.1/personal/joydeep/experimet =A0 I =A0get "page not foun=
d
> error". =A0the log reports
>
> ``````````````````````````
> URL =A0 /personal/joydeep/experiment/index.php, =A0referer:
> http://192.168.1.1/personal/joydeep/
> ```````````````````````````````
> It is definitely wrong as it refer the parent folder and not the
> subfolder "experiment" hence the index.php is missing. =A0Is there any
> problem with my configuration ?
>
[clip]

I don't really understand the problem. The error log shows that the
index page for the child ("experiment") directory is being requested.
I'm not sure why the referer is showing up the way it is, but that
shouldn't be relevant. The URL of interest in the log is
/personal/joydeep/experiment/index.php, so it would appear that this
file, /var/personal_work_area/joydeep/experiment/index.php, doesn't
exist.

On a probably unrelated note, is there a reason you have an alias set
up for your document root? Aliases are usually used to make
directories that are not under the DocumentRoot available through the
web server, or sometimes to give alternate URLs to content that is
under the DocumentRoot (though RewriteRules are more common for that,
I think).

-Brian

--=20
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: apache configuration: always go to parent directory

am 11.11.2009 04:00:56 von joydeep

Brian Mearns wrote:
> On Tue, Nov 10, 2009 at 4:43 AM, J. Bakshi wrote:
>
>> Hello,
>>
>> I have configured a personal work-space for mine in apache where I can
>> experiment with different sites and here is the configuration
>>
>> ````````````````````````````````````````````
>> Alias /personal/joydeep /var/personal_work_area/joydeep
>>
>> DocumentRoot /var/personal_work_area/joydeep/
>>
>>
>>
>> DirectoryIndex index.php
>>
>> Options Indexes FollowSymLinks MultiViews
>> AllowOverride All
>> Order allow,deny
>> allow from all
>>
>>

>> ``````````````````````````````````````````````````````````
>>
>> I have placed a folder ( a site) there. So the absolute path of that
>> folder is /var/personal_work_area/joydeep/experiment. Whenever I access
>> the folder through browser by visiting
>> http://192.168.1.1/personal/joydeep/experimet I get "page not found
>> error". the log reports
>>
>> ``````````````````````````
>> URL /personal/joydeep/experiment/index.php, referer:
>> http://192.168.1.1/personal/joydeep/
>> ```````````````````````````````
>> It is definitely wrong as it refer the parent folder and not the
>> subfolder "experiment" hence the index.php is missing. Is there any
>> problem with my configuration ?
>>
>>
> [clip]
>
> I don't really understand the problem. The error log shows that the
> index page for the child ("experiment") directory is being requested.
> I'm not sure why the referer is showing up the way it is, but that
> shouldn't be relevant. The URL of interest in the log is
> /personal/joydeep/experiment/index.php, so it would appear that this
> file, /var/personal_work_area/joydeep/experiment/index.php, doesn't
> exist.
>
>

the file exist here.

````````````````````````
debian:~# ls -l /var/personal_work_area/joydeep/experiment/index.php

lrwxrwxrwx 1 wwwrun www 19 2009-10-28 22:22
/var/personal_work_area/joydeep/experiment/index.php

`````````````````````````````````````````


> On a probably unrelated note, is there a reason you have an alias set
> up for your document root? "

As I have configured it is actually a personal workspace for
experimental work. Actually it is protected by the " Require user"
directive that only user can login there.


> Aliases are usually used to make
> directories that are not under the DocumentRoot available through the
> web server, or sometimes to give alternate URLs to content that is
> under the DocumentRoot (though RewriteRules are more common for that,
> I think).
>
> -Brian
>
>


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: apache configuration: always go to parent directory

am 11.11.2009 04:51:55 von Brian Mearns

On Tue, Nov 10, 2009 at 10:00 PM, J. Bakshi wrote=
:
> Brian Mearns wrote:
>> On Tue, Nov 10, 2009 at 4:43 AM, J. Bakshi wro=
te:
>>
>>> Hello,
>>>
>>> I have configured a personal work-space for mine in apache where I can
>>> experiment with different sites and here is the configuration
>>>
>>> ````````````````````````````````````````````
>>> Alias /personal/joydeep =A0/var/personal_work_area/joydeep
>>>
>>> DocumentRoot =A0/var/personal_work_area/joydeep/
>>>
>>> =A0 =A0 =A0 =A0
>>>
>>> =A0 =A0 =A0 =A0 =A0DirectoryIndex index.php
>>>
>>> =A0 =A0 =A0 =A0 =A0 Options Indexes FollowSymLinks MultiViews
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0AllowOverride All
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Order allow,deny
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0allow from all
>>>
>>> =A0 =A0 =A0 =A0

>>> ``````````````````````````````````````````````````````````
>>>
>>> I have placed a folder ( a site) there. So the absolute path of that
>>> folder is =A0/var/personal_work_area/joydeep/experiment. Whenever I acc=
ess
>>> the folder through browser by visiting
>>> http://192.168.1.1/personal/joydeep/experimet =A0 I =A0get "page not fo=
und
>>> error". =A0the log reports
>>>
>>> ``````````````````````````
>>> URL =A0 /personal/joydeep/experiment/index.php, =A0referer:
>>> http://192.168.1.1/personal/joydeep/
>>> ```````````````````````````````
>>> It is definitely wrong as it refer the parent folder and not the
>>> subfolder "experiment" hence the index.php is missing. =A0Is there any
>>> problem with my configuration ?
>>>
>>>
>> [clip]
>>
>> I don't really understand the problem. The error log shows that the
>> index page for the child ("experiment") directory is being requested.
>> I'm not sure why the referer is showing up the way it is, but that
>> shouldn't be relevant. The URL of interest in the log is
>> /personal/joydeep/experiment/index.php, so it would appear that this
>> file, /var/personal_work_area/joydeep/experiment/index.php, doesn't
>> exist.
>>
>>
>
> the file exist here.
>
> ````````````````````````
> debian:~# ls -l /var/personal_work_area/joydeep/experiment/index.php
>
> lrwxrwxrwx 1 wwwrun www 19 2009-10-28 22:22
> /var/personal_work_area/joydeep/experiment/index.php
>
> `````````````````````````````````````````
>
>
>> On a probably unrelated note, is there a reason you have an alias set
>> up for your document root? "
>
> As I have configured it is actually a personal workspace for
> experimental work. Actually it is protected by the " Require user"
> directive that only user can login there.
>
>
>> Aliases are usually used to make
>> directories that are not under the DocumentRoot available through the
>> web server, or sometimes to give alternate URLs to content that is
>> under the DocumentRoot (though RewriteRules are more common for that,
>> I think).
>>
>> -Brian
>>
>>
[clip]

Ok, so the file exists, but is still giving a 404? Your original post
mentions that it always goes to the parent directory, but that's not
what's happening. Why it's not giving you the file that is there I
can't say for sure, but I don't think it has anything to do with
parent directories.

This Alias thing is troubling me, and may be causing your problem. You
have an alias that points to the same directory as your document root:
I don't see why specifically this would cause problems, but it doesn't
sit well with me. Try removing it, see if that happens to do anything.

On the other hand, I noticed a typo in your original post; I assumed
it was just a typo in your email, but maybe you're actually trying to
visit the wrong address? http://192.168.1.1/personal/joydeep/experimet
should have an 'n' in "experimet".

-Brian
--=20
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: apache configuration: always go to parent directory

am 11.11.2009 05:10:43 von joydeep

Brian Mearns wrote:
> On Tue, Nov 10, 2009 at 10:00 PM, J. Bakshi wrote:
>
>> Brian Mearns wrote:
>>
>>> On Tue, Nov 10, 2009 at 4:43 AM, J. Bakshi wrote:
>>>
>>>
>>>> Hello,
>>>>
>>>> I have configured a personal work-space for mine in apache where I can
>>>> experiment with different sites and here is the configuration
>>>>
>>>> ````````````````````````````````````````````
>>>> Alias /personal/joydeep /var/personal_work_area/joydeep
>>>>
>>>> DocumentRoot /var/personal_work_area/joydeep/
>>>>
>>>>
>>>>
>>>> DirectoryIndex index.php
>>>>
>>>> Options Indexes FollowSymLinks MultiViews
>>>> AllowOverride All
>>>> Order allow,deny
>>>> allow from all
>>>>
>>>>

>>>> ``````````````````````````````````````````````````````````
>>>>
>>>> I have placed a folder ( a site) there. So the absolute path of that
>>>> folder is /var/personal_work_area/joydeep/experiment. Whenever I access
>>>> the folder through browser by visiting
>>>> http://192.168.1.1/personal/joydeep/experimet I get "page not found
>>>> error". the log reports
>>>>
>>>> ``````````````````````````
>>>> URL /personal/joydeep/experiment/index.php, referer:
>>>> http://192.168.1.1/personal/joydeep/
>>>> ```````````````````````````````
>>>> It is definitely wrong as it refer the parent folder and not the
>>>> subfolder "experiment" hence the index.php is missing. Is there any
>>>> problem with my configuration ?
>>>>
>>>>
>>>>
>>> [clip]
>>>
>>> I don't really understand the problem. The error log shows that the
>>> index page for the child ("experiment") directory is being requested.
>>> I'm not sure why the referer is showing up the way it is, but that
>>> shouldn't be relevant. The URL of interest in the log is
>>> /personal/joydeep/experiment/index.php, so it would appear that this
>>> file, /var/personal_work_area/joydeep/experiment/index.php, doesn't
>>> exist.
>>>
>>>
>>>
>> the file exist here.
>>
>> ````````````````````````
>> debian:~# ls -l /var/personal_work_area/joydeep/experiment/index.php
>>
>> lrwxrwxrwx 1 wwwrun www 19 2009-10-28 22:22
>> /var/personal_work_area/joydeep/experiment/index.php
>>
>> `````````````````````````````````````````
>>
>>
>>
>>> On a probably unrelated note, is there a reason you have an alias set
>>> up for your document root? "
>>>
>> As I have configured it is actually a personal workspace for
>> experimental work. Actually it is protected by the " Require user"
>> directive that only user can login there.
>>
>>
>>
>>> Aliases are usually used to make
>>> directories that are not under the DocumentRoot available through the
>>> web server, or sometimes to give alternate URLs to content that is
>>> under the DocumentRoot (though RewriteRules are more common for that,
>>> I think).
>>>
>>> -Brian
>>>
>>>
>>>
> [clip]
>
> Ok, so the file exists, but is still giving a 404? Your original post
> mentions that it always goes to the parent directory, but that's not
> what's happening. Why it's not giving you the file that is there I
> can't say for sure, but I don't think it has anything to do with
> parent directories.
>
> This Alias thing is troubling me, and may be causing your problem. You
> have an alias that points to the same directory as your document root:
> I don't see why specifically this would cause problems, but it doesn't
> sit well with me. Try removing it, see if that happens to do anything.
>
> On the other hand, I noticed a typo in your original post; I assumed
> it was just a typo in your email, but maybe you're actually trying to
> visit the wrong address? http://192.168.1.1/personal/joydeep/experimet
> should have an 'n' in "experimet".
>
> -Brian
>

Hello Brain,

Thanks for pointing out the typo. I am really ashamed of that.

The alias is there to simplify the personal working space for users.
Say if you visit
http://192.168.1.1/personal/ Brain and there is already an alias
properly configured you'll get your experiment space. One more point I
like to add that the personal working space is also attached with
webdav. So users get a felling that they works on their hard disk where
the actual effect is on the server and seen by apache. The only issue
here is "page not found" problem. According to the "DirectoryIndex
index.php" apache should read the file but here it only works when I give

http://192.168.1.1/personal/joydeep/experiment/index.php

Trying to figure it out.
Thanks




------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: apache configuration: always go to parent directory

am 12.11.2009 11:03:35 von Boyle Owen

> -----Original Message-----
> From: J. Bakshi [mailto:joydeep@infoservices.in]=20
> Sent: Tuesday, November 10, 2009 10:43 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] apache configuration: always go to=20
> parent directory
>=20
> Hello,
>=20
> I have configured a personal work-space for mine in apache where I can
> experiment with different sites and here is the configuration
>=20
> ````````````````````````````````````````````
> Alias /personal/joydeep /var/personal_work_area/joydeep
>=20
> DocumentRoot /var/personal_work_area/joydeep/
>=20
>
>=20
> DirectoryIndex index.php
>=20
> Options Indexes FollowSymLinks MultiViews
> AllowOverride All
> Order allow,deny
> allow from all
>=20
>

> ``````````````````````````````````````````````````````````
>=20
> I have placed a folder ( a site) there. So the absolute path of that
> folder is /var/personal_work_area/joydeep/experiment.=20
> Whenever I access
> the folder through browser by visiting
> http://192.168.1.1/personal/joydeep/experimet I get "page not found
> error". the log reports
>=20
> ``````````````````````````
> URL /personal/joydeep/experiment/index.php, referer:
> http://192.168.1.1/personal/joydeep/

I just read over the thread - this should be a simple mis-configuration
problem... But can you please post the full line from the apache error
log?

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.=20

> ```````````````````````````````
> It is definitely wrong as it refer the parent folder and not the
> subfolder "experiment" hence the index.php is missing. Is there any
> problem with my configuration ?
>=20
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP=20
> Server Project.
> See 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
>=20
>=20
=20
This message is for the named person's use only. It may contain =
confidential, proprietary or legally privileged information. If you =
receive this message in error, please notify the sender urgently and =
then immediately delete the message and any copies of it from your =
system. Please also immediately destroy any hardcopies of the message.=20
The sender's company reserves the right to monitor all e-mail =
communications through their networks.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: apache configuration: always go to parent directory

am 12.11.2009 11:45:27 von joydeep

Boyle Owen wrote:
>> -----Original Message-----
>> From: J. Bakshi [mailto:joydeep@infoservices.in]
>> Sent: Tuesday, November 10, 2009 10:43 AM
>> To: users@httpd.apache.org
>> Subject: [users@httpd] apache configuration: always go to
>> parent directory
>>
>> Hello,
>>
>> I have configured a personal work-space for mine in apache where I can
>> experiment with different sites and here is the configuration
>>
>> ````````````````````````````````````````````
>> Alias /personal/joydeep /var/personal_work_area/joydeep
>>
>> DocumentRoot /var/personal_work_area/joydeep/
>>
>>
>>
>> DirectoryIndex index.php
>>
>> Options Indexes FollowSymLinks MultiViews
>> AllowOverride All
>> Order allow,deny
>> allow from all
>>
>>

>> ``````````````````````````````````````````````````````````
>>
>> I have placed a folder ( a site) there. So the absolute path of that
>> folder is /var/personal_work_area/joydeep/experiment.
>> Whenever I access
>> the folder through browser by visiting
>> http://192.168.1.1/personal/joydeep/experimet I get "page not found
>> error". the log reports
>>
>> ``````````````````````````
>> URL /personal/joydeep/experiment/index.php, referer:
>> http://192.168.1.1/personal/joydeep/
>>
>
> I just read over the thread - this should be a simple mis-configuration
> problem... But can you please post the full line from the apache error
> log?
>
>
>

Hello Owen,

thanks for your response. I also have problem with rewrirerule at that
working space. So definitely something is wrong. I am providing here the
log as well as the config


##apache config

``````````````````````````````````
Alias /personal/joydeep /var/personal_work_area/joydeep

DocumentRoot /var/personal_work_area/


DirectoryIndex index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

`````````````

There is a folder called test with a .htaccess inside
/var/personal_work_area/joydeep folder
The test folder has .htaccess ; alice.html and bob.html

`````````````
Options +FollowSymLinks
#
RewriteEngine On
RewriteRule ^alice.html$ bob.htm
```````````````````

When I visit http://192.168.1.1/personal/joydeep/test/alice.html I get
error as

````
The requested URL /index.php was not found on this server.
````

Here is the log

````
[Thu Nov 12 15:47:49 2009] [debug] mod_deflate.c(632): [client
192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
[Thu Nov 12 15:47:50 2009] [error] [client 192.168.1.100] script
'/var/www/index.php' not found or unable to stat
[Thu Nov 12 15:47:50 2009] [debug] mod_deflate.c(632): [client
192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
[Thu Nov 12 15:47:50 2009] [error] [client 192.168.1.100] script
'/var/www/index.php' not found or unable to stat
[Thu Nov 12 15:47:50 2009] [debug] mod_deflate.c(632): [client
192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
````

Though everything is working well if I put test folder inside /var/www
folder.

Here is my main configuration ( separate file) for /var/www

```````````````````

ServerAdmin webmaster@localhost

DocumentRoot /var/www

Options FollowSymLinks
AllowOverride All


Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all



DirectoryIndex index.php index.html

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/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



``````````````````````````

Please ask if you need more info.

Thanks
--
জয়দীপ বক্সী

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: apache configuration: always go to parent directory

am 12.11.2009 13:26:43 von Boyle Owen

> -----Original Message-----
> From: J. Bakshi [mailto:joydeep@infoservices.in]=20
>=20
>=20
> ##apache config
>=20
> ``````````````````````````````````
> Alias /personal/joydeep /var/personal_work_area/joydeep
>=20
> DocumentRoot /var/personal_work_area/
>=20
>
> DirectoryIndex index.php
> Options Indexes FollowSymLinks MultiViews
> AllowOverride All
> Order allow,deny
> allow from all
>

> `````````````
>=20
> There is a folder called test with a .htaccess inside=20
> /var/personal_work_area/joydeep folder
> The test folder has .htaccess ; alice.html and bob.html
>=20
> `````````````
> Options +FollowSymLinks
> #
> RewriteEngine On
> RewriteRule ^alice.html$ bob.htm
> ```````````````````
>=20
> When I visit http://192.168.1.1/personal/joydeep/test/alice.html I get
> error as
>=20
> ````
> The requested URL /index.php was not found on this server.
> ````
>=20
> Here is the log
>=20
> ````
> [Thu Nov 12 15:47:49 2009] [debug] mod_deflate.c(632): [client
> 192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
> [Thu Nov 12 15:47:50 2009] [error] [client 192.168.1.100] script
> '/var/www/index.php' not found or unable to stat

So the server has its docroot set to /var/www. That means it is not =
using the config above.

> [Thu Nov 12 15:47:50 2009] [debug] mod_deflate.c(632): [client
> 192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
> [Thu Nov 12 15:47:50 2009] [error] [client 192.168.1.100] script
> '/var/www/index.php' not found or unable to stat
> [Thu Nov 12 15:47:50 2009] [debug] mod_deflate.c(632): [client
> 192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
> ````
>=20
> Though everything is working well if I put test folder inside /var/www
> folder.
>=20
> Here is my main configuration ( separate file) for /var/www

Aha... You are using virtual hosts. This VH below is effectively your =
main server. All requests will go here (unless they don't match *:80 at =
TCP/IP).

Under what circumstances do you expect requests to go to the =
/var/personal_work_area/ docroot? Once you decide, you need to move the =
directives to a VH and set it up to receive that traffic (eg, you may =
want to use a name-based VH).

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.=20

>=20
> ```````````````````
>
> ServerAdmin webmaster@localhost
>=20
> DocumentRoot /var/www
>
> Options FollowSymLinks
> AllowOverride All
>

>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride All
> Order allow,deny
> allow from all
>

>=20
>=20
> DirectoryIndex index.php index.html
>=20
> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>
> AllowOverride All
> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
>

>=20
> ErrorLog /var/log/apache2/error.log
>=20
> # Possible values include: debug, info, notice, warn,=20
> error, crit,
> # alert, emerg.
> LogLevel debug
>=20
> CustomLog /var/log/apache2/access.log combined
>=20
> Alias /doc/ "/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
>

>=20
>

> ``````````````````````````
>=20
> Please ask if you need more info.
>=20
> Thanks
> --=20
> জয়দীà¦=AA =
বক্সà§=80
>=20
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP=20
> Server Project.
> See 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
>=20
>=20
=20
This message is for the named person's use only. It may contain =
confidential, proprietary or legally privileged information. If you =
receive this message in error, please notify the sender urgently and =
then immediately delete the message and any copies of it from your =
system. Please also immediately destroy any hardcopies of the message.=20
The sender's company reserves the right to monitor all e-mail =
communications through their networks.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: apache configuration: always go to parent directory

am 13.11.2009 05:27:22 von joydeep

Boyle Owen wrote:
>> -----Original Message-----
>> From: J. Bakshi [mailto:joydeep@infoservices.in]
>>
>>
>> ##apache config
>>
>> ``````````````````````````````````
>> Alias /personal/joydeep /var/personal_work_area/joydeep
>>
>> DocumentRoot /var/personal_work_area/
>>
>>
>> DirectoryIndex index.php
>> Options Indexes FollowSymLinks MultiViews
>> AllowOverride All
>> Order allow,deny
>> allow from all
>>

>> `````````````
>>
>> There is a folder called test with a .htaccess inside
>> /var/personal_work_area/joydeep folder
>> The test folder has .htaccess ; alice.html and bob.html
>>
>> `````````````
>> Options +FollowSymLinks
>> #
>> RewriteEngine On
>> RewriteRule ^alice.html$ bob.htm
>> ```````````````````
>>
>> When I visit http://192.168.1.1/personal/joydeep/test/alice.html I get
>> error as
>>
>> ````
>> The requested URL /index.php was not found on this server.
>> ````
>>
>> Here is the log
>>
>> ````
>> [Thu Nov 12 15:47:49 2009] [debug] mod_deflate.c(632): [client
>> 192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
>> [Thu Nov 12 15:47:50 2009] [error] [client 192.168.1.100] script
>> '/var/www/index.php' not found or unable to stat
>>
>
> So the server has its docroot set to /var/www. That means it is not using the config above.
>
>
>> [Thu Nov 12 15:47:50 2009] [debug] mod_deflate.c(632): [client
>> 192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
>> [Thu Nov 12 15:47:50 2009] [error] [client 192.168.1.100] script
>> '/var/www/index.php' not found or unable to stat
>> [Thu Nov 12 15:47:50 2009] [debug] mod_deflate.c(632): [client
>> 192.168.1.100] Zlib: Compressed 366 to 278 : URL /index.php
>> ````
>>
>> Though everything is working well if I put test folder inside /var/www
>> folder.
>>
>> Here is my main configuration ( separate file) for /var/www
>>
>
> Aha... You are using virtual hosts. This VH below is effectively your main server. All requests will go here (unless they don't match *:80 at TCP/IP).
>
> Under what circumstances do you expect requests to go to the /var/personal_work_area/ docroot? Once you decide, you need to move the directives to a VH and set it up to receive that traffic (eg, you may want to use a name-based VH).
>

Owen, a positive progress. Your suggestion works out. After reading your
response I have moved the config in my main configuration file and
everything is working fine. Though I need to omit

````````````
DocumentRoot /var/personal_work_area/
``````````

otherwise the sites running inside /var/www is not accessible any more.
But as soon as I removed the code
'
``````````````````````````````````
Alias /personal/joydeep /var/personal_work_area/joydeep



DirectoryIndex index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

`````````````

to a separate file, I again get the same problem; i.e.
http://192.168.1.1/personal/joydeep/test/alice.html reports page not
found. The main config is inside the vhost, how can I still keep my
above config in a separate file ?

with regards,

--
জয়দীপ বক্সী

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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