can we get separate document root ?

can we get separate document root ?

am 16.11.2009 04:04:54 von joydeep

Hello list,

I am suffering with document root issue with my apache config . I have
placed a config like

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

Alias /personal/joydeep /var/personal_work_area/joydeep



DirectoryIndex index.php



``````````

But realurl is not working here as rewrite rule always use /var/www as its document root. Is it possible to force the document root inside ?
Please let me know.



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


------------------------------------------------------------ ---------
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: can we get separate document root ?

am 16.11.2009 04:08:13 von Eric Covener

On Sun, Nov 15, 2009 at 10:04 PM, J. Bakshi wrote=
:
> Hello list,
>
> I am suffering with document root issue with my apache config . I have
> placed a config like
>
> ```````````````
>
> Alias /personal/joydeep =A0/var/personal_work_area/joydeep
>
>
> =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 =A0 =A0 =A0DirectoryIndex index.php
>
> =A0 =A0 =A0 =A0

>
> ``````````
>
> But realurl is not working here as rewrite rule always use /var/www as it=
s document root. Is it possible to force the document root inside y> ?
> Please let me know.

If your rewrite rules are in htaccess, are you specifying RewriteBase?

What is "not working"?

--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
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: can we get separate document root ?

am 16.11.2009 04:26:10 von joydeep

Eric Covener wrote:
> On Sun, Nov 15, 2009 at 10:04 PM, J. Bakshi wrote:
>
>> Hello list,
>>
>> I am suffering with document root issue with my apache config . I have
>> placed a config like
>>
>> ```````````````
>>
>> Alias /personal/joydeep /var/personal_work_area/joydeep
>>
>>
>>
>> DirectoryIndex index.php
>>
>>

>>
>> ``````````
>>
>> But realurl is not working here as rewrite rule always use /var/www as its document root. Is it possible to force the document root inside ?
>> Please let me know.
>>
>
> If your rewrite rules are in htaccess, are you specifying RewriteBase?
>
> What is "not working"?
>
>

Thanks for your response. Here is the setup. I have placed a folder
called test at

/var/personal_work_area/joydeep

The test folder has alice.html and bob.html and the .htaccess is

````
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteRule ^alice.html$ bob.html
````

When i visit alice.html apache fires an error at log as

````
[error] [client 192.168.1.100] script '/var/www/index.php' not found or unable to stat
`````````````

It should look at /var/personal_work_area/joydeep but here it is looking at /var/www which is defined at the main httpd.conf as document root.


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


------------------------------------------------------------ ---------
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: [ SOLVED ] can we get separate document root ?

am 16.11.2009 04:40:03 von joydeep

J. Bakshi wrote:
> Eric Covener wrote:
>
>> On Sun, Nov 15, 2009 at 10:04 PM, J. Bakshi wrote:
>>
>>
>>> Hello list,
>>>
>>> I am suffering with document root issue with my apache config . I have
>>> placed a config like
>>>
>>> ```````````````
>>>
>>> Alias /personal/joydeep /var/personal_work_area/joydeep
>>>
>>>
>>>
>>> DirectoryIndex index.php
>>>
>>>

>>>
>>> ``````````
>>>
>>> But realurl is not working here as rewrite rule always use /var/www as its document root. Is it possible to force the document root inside ?
>>> Please let me know.
>>>
>>>
>> If your rewrite rules are in htaccess, are you specifying RewriteBase?
>>
>> What is "not working"?
>>
>>
>>
>
> Thanks for your response. Here is the setup. I have placed a folder
> called test at
>
> /var/personal_work_area/joydeep
>
> The test folder has alice.html and bob.html and the .htaccess is
>
> ````
> Options +FollowSymLinks
> RewriteEngine On
> RewriteBase /
>
> RewriteRule ^alice.html$ bob.html
> ````
>
> When i visit alice.html apache fires an error at log as
>
> ````
> [error] [client 192.168.1.100] script '/var/www/index.php' not found or unable to stat
> `````````````
>
> It should look at /var/personal_work_area/joydeep but here it is looking at /var/www which is defined at the main httpd.conf as document root.
>
>
>

Eric, I have solved it :-) Thanks for showing me the right track
I have placed the follwing in .htaccess

````
RewriteBase /personal/joydeep/test
````

and now the rewriterule is working fine. By the way ; I am also trying
to make it working inside apache configuration.

Thanks once again


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


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