Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts
Thursday, June 13, 2013
Apache read raw request data
It's not possible to get the whole raw request data from within PHP. You can get the request body using php://input but not the headers. Searching around, I found that you can log the request data from apache using mod_dumpio. It will dump the incoming request data to error.log. As mentioned in the docs, for apache version < 2.4, you have to set LogLevel to debug. One catch with this is to make sure none of your virtualhost config has LogLevel higher than debug otherwise you'll not get output from this module. Also make sure you didn't set the LogLevel to debug but going down the config, another LogLevel exists and set to something else. Happened to me.
Thursday, September 16, 2010
Plesk: Overriding apache config
For PHP
The important thing is the command:-
which would rebuild the apache config and add an Include directive to include the file we have just created. For subdomains, we need to create the vhost.conf under that subdomain conf directory and then run:-
http://forum.parallels.com/showthread.php?t=78897
safe_mode
you can do that through the control panel but not for open_basedir
. You can create a file called vhosts.conf
under conf directory in your domain root. This link explain it better.The important thing is the command:-
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<DOMAIN.TLD>
which would rebuild the apache config and add an Include directive to include the file we have just created. For subdomains, we need to create the vhost.conf under that subdomain conf directory and then run:-
/usr/local/psa/admin/sbin/websrvmng -a -v
http://forum.parallels.com/showthread.php?t=78897
Subscribe to:
Posts (Atom)