I've been looking a place to get more knowledge on PERL/Apache interaction and this seems a good place to start.
This is not an actual problem "per se" more like a good-to-have "feature" in my current environment.
I have my Apache running Perl with CGI and virtualhosts, each virtualhost has it's own cgi directory and different apps runnin on them... but there seems to be a catch, each time the perl script call the warn function it prints to the main Apache error log file and not on virtualhost error log file, do you know why? or how can I can change the stdout? Is it something I need to configure in Apache? Any advise on this guys?
UPDATE: Let me give you the details, I'm running Apache 2.2.15 compiled with MPM Worker, and I'm using mod_cgid. Here is the virtualhost template that I'm using:<VirtualHost 0.0.0.0:443> ServerName privatedomain.com:443 DocumentRoot "/opt/apache/secure-htdocs" DirectoryIndex index.phtml index.php index.html index.htm ErrorLog /opt/apache/logs/privatedomain.com_error_log TransferLog /opt/apache/logs/privatedomain.com_access_log #### SSL Settings SSLEngine On SSLProtocol All -SSLv2 -SSLv3 SSLCertificateFile /opt/apache/conf/ssl.crt/privatedomain.com.c +rt SSLCertificateKeyFile /opt/apache/conf/ssl.key/privatedomain.com.k +ey SSLCACertificatePath /opt/apache/conf/ssl.crt SSLCACertificateFile /opt/apache/conf/ssl.crt/ca-bundle.crt SSLCipherSuite !ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+E +XP:+eNULL SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 <FilesMatch "\.(cgi|pl|shtml|php|phtml|php3?)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory "/opt/apache/secure-htdocs"> Options All Order Allow,Deny Allow from All </Directory> ScriptAlias /cgi-bin/ /opt/apache/secure-cgi-bin/ <Directory "/opt/apache/secure-cgi-bin" > AllowOverride AuthConfig Limit Options Order Allow,Deny Allow from All </Directory> </VirtualHost>
In reply to Apache Perl CGI and VirtualHosts by thedevopsguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |