Question : Apache AllowEncodedSlashes Not Working



Hi,

I'm running Apache(XAMPP package) and i'm trying to allow forward slashes in the URI to be able to retrieve parameters sent with encodeURIComponent, so i added the directive

1:
2:
3:
AllowEncodedSlashes On
NameVirtualHost *:80
...

in httpd-vhosts.conf. however i'm still getting 404 error, am i missing something?

Regards.

Yehia A.Salam

Answer : Apache AllowEncodedSlashes Not Working

When there's no ServerName directive in the global section of httpd.conf -- that's when httpd has to try to determine the servername itself.  And something in the configuration of your machine, or in your name resolution, has httpd ending up with sag.visas.gov wrongly.

Add a line in the global section (you may see a commented-out example line shortly after ServerAdmin):
ServerName visas.ecvisas.com

Also change back your ServerName line in the VirtualHost section to visas.ecvisas.com.

Make sure visas.ecvisas.com is in your /etc/hosts file.

Then try restarting apache.
Random Solutions  
 
programming4us programming4us