Boyle Owen wrote:
>> -----Original Message-----
>> From: J. Bakshi [mailto:[email protected]]
>> Sent: Tuesday, November 10, 2009 10:43 AM
>> To: [email protected]
>> 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: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]