RE: [us...@httpd] apache configuration: always go to parent directory

2009-11-12 Thread Boyle Owen
 -Original Message-
 From: J. Bakshi [mailto:joyd...@infoservices.in] 
 Sent: Tuesday, November 10, 2009 10:43 AM
 To: users@httpd.apache.org
 Subject: [us...@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/
 
 Directory /var/personal_work_area/joydeep/
 
   DirectoryIndex index.php
 
Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
 
 /Directory
 ``
 
 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?

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

 ```
 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 URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org
 
 
 
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. 
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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] apache configuration: always go to parent directory

2009-11-12 Thread J. Bakshi
Boyle Owen wrote:
 -Original Message-
 From: J. Bakshi [mailto:joyd...@infoservices.in] 
 Sent: Tuesday, November 10, 2009 10:43 AM
 To: users@httpd.apache.org
 Subject: [us...@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/

 Directory /var/personal_work_area/joydeep/

   DirectoryIndex index.php

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

 /Directory
 ``

 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/

Directory /var/personal_work_area/joydeep/
DirectoryIndex index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
/Directory
`

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
#IfModule mod_rewrite.c
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

```
VirtualHost *:80
ServerAdmin webmas...@localhost

DocumentRoot /var/www
Directory /
Options FollowSymLinks
AllowOverride All
/Directory
Directory /var/www/
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
/Directory


DirectoryIndex index.php index.html

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Directory /usr/lib/cgi-bin
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
/Directory

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/
Directory /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
/Directory

/VirtualHost
``

Please ask if you need more info.

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

-
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-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [us...@httpd] apache configuration: always go to parent directory

2009-11-12 Thread Boyle Owen
 -Original Message-
 From: J. Bakshi [mailto:joyd...@infoservices.in] 
 
 
 ##apache config
 
 ``
 Alias /personal/joydeep  /var/personal_work_area/joydeep
 
 DocumentRoot  /var/personal_work_area/
 
 Directory /var/personal_work_area/joydeep/
 DirectoryIndex index.php
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
 /Directory
 `
 
 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
 #IfModule mod_rewrite.c
 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).

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

 
 ```
 VirtualHost *:80
 ServerAdmin webmas...@localhost
 
 DocumentRoot /var/www
 Directory /
 Options FollowSymLinks
 AllowOverride All
 /Directory
 Directory /var/www/
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
 /Directory
 
 
 DirectoryIndex index.php index.html
 
 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
 Directory /usr/lib/cgi-bin
 AllowOverride All
 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
 Order allow,deny
 Allow from all
 /Directory
 
 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/
 Directory /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
 /Directory
 
 /VirtualHost
 ``
 
 Please ask if you need more info.
 
 Thanks
 -- 
 জয়দীপ বক্সী
 
 -
 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-unsubscr...@httpd.apache.org
   from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org
 
 
 
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. 
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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] apache configuration: always go to parent directory

2009-11-12 Thread J. Bakshi
Boyle Owen wrote:
 -Original Message-
 From: J. Bakshi [mailto:joyd...@infoservices.in] 


 ##apache config

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

 DocumentRoot  /var/personal_work_area/

 Directory /var/personal_work_area/joydeep/
 DirectoryIndex index.php
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
 /Directory
 `

 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
 #IfModule mod_rewrite.c
 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


Directory /var/personal_work_area/joydeep/
DirectoryIndex index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
/Directory
`

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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] apache configuration: always go to parent directory

2009-11-10 Thread Brian Mearns
On Tue, Nov 10, 2009 at 4:43 AM, J. Bakshi joyd...@infoservices.in 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/

        Directory /var/personal_work_area/joydeep/

          DirectoryIndex index.php

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

        /Directory
 ``

 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.

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

-- 
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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] apache configuration: always go to parent directory

2009-11-10 Thread J. Bakshi
Brian Mearns wrote:
 On Tue, Nov 10, 2009 at 4:43 AM, J. Bakshi joyd...@infoservices.in 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/

Directory /var/personal_work_area/joydeep/

  DirectoryIndex index.php

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

/Directory
 ``

 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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] apache configuration: always go to parent directory

2009-11-10 Thread Brian Mearns
On Tue, Nov 10, 2009 at 10:00 PM, J. Bakshi joyd...@infoservices.in wrote:
 Brian Mearns wrote:
 On Tue, Nov 10, 2009 at 4:43 AM, J. Bakshi joyd...@infoservices.in 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/

        Directory /var/personal_work_area/joydeep/

          DirectoryIndex index.php

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

        /Directory
 ``

 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
-- 
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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] apache configuration: always go to parent directory

2009-11-10 Thread J. Bakshi
Brian Mearns wrote:
 On Tue, Nov 10, 2009 at 10:00 PM, J. Bakshi joyd...@infoservices.in wrote:
   
 Brian Mearns wrote:
 
 On Tue, Nov 10, 2009 at 4:43 AM, J. Bakshi joyd...@infoservices.in 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/

Directory /var/personal_work_area/joydeep/

  DirectoryIndex index.php

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

/Directory
 ``

 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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org