Boyle Owen wrote: >> -----Original Message----- >> From: J. Bakshi [mailto:joydeep@xxxxxxxxxxxxxxx] >> >> >> ##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-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx