httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Bakshi" <joyd...@infoservices.in>
Subject Re: [users@httpd] apache configuration: always go to parent directory
Date Thu, 12 Nov 2009 10:45:27 GMT
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/
>>
>>         <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 webmaster@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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message