Forums / Developer / How to test custom scripts?
Siniša Šehović
Monday 04 December 2006 12:42:43 pm
Hi
What do I have to do on Apache side to be able to test custom scripts in test folder in my ez root?
Some rewrite rules?
I am using virtual host settings in apache.
Best regards,Sinisa
--- If at first you don't succeed, look in the trash for the instructions.
Claudia Kosny
Tuesday 05 December 2006 10:32:29 am
Hi Sinisa
not sure about the virtual host settings but it should be similar to htaccess where you have to make the following changes:Allow access to the folders with the scripts:
<FilesMatch "foldername/\.php"> order allow,deny allow from all </FilesMatch>
directly after the <FilesMatch "."> block.
Then also add a rewrite rule that tells apache not to rewrite the script urls directly under the RewriteEngine On directive:
RewriteRule foldername/\.php - [L]
Depending on your exact setup you most likely will need to change the match condition and the rewrite rule, but this is easy to find out.
That should be it.
Claudia
Wednesday 06 December 2006 2:31:44 am
Hi Claudia,
"Depending on your exact setup you most likely will need to change the match condition and the rewrite rule, but this is easy to find out."
How can I find out?
RewriteRule is not working for me!?