What is the main difference between Location and Directory sections?
Directory sections refer to file system objects; Location sections refer to elements in the address bar of the Web page
What is the difference between a restart and a graceful restart of a web server?
During a normal restart, the server is stopped and then started, causing some requests to be lost. A graceful restart allows Apache children to continue to serve their current requests until they can be replaced with children running the new configuration.
What is the use of mod_perl module?
mod_perl scripting module to allow better Perl script performance and easy integration with the Web server.
If you have added "loglevel Debug" in httpd.conf file, than what will happen?
It will give you more information in the error log in order to debug a problem.
Can we do automatically roll over the Apache logs at specific times without having to shut down and restart the server?
Yes Use CustomLog and the rotatelogs programs
Add following line in httpd.conf file. CustomLog "| /path/to/rotatelogs /path/to/logs/access_log.%Y-%m-%d 86400" combined
How you will put a limit on uploads on your web server?
This can be achieved by LimitRequestBody directive. <Directory "/var/www/html/data_uploads">
LimitRequestBody 100000
</Directory>
Here I have put limit of 100000 Bytes
How to enable PHP scripts on your server?
If you have mod_php installed, use AddHandler to map .php and .phtml files to the PHP handler. AddHandler application/x-httpd-php .phtml .php
No comments:
Post a Comment