Tag Info

Hot answers tagged

4

Most likely CorpDomain.cer and CorpServices.cer are binary DER encoded CA certificate files, which you can easily convert to the base 64 PEM format with: openssl x509 -in CorpDomain.cer -inform der -outform pem -out CorpDomain.pem Afterwards you can concatenate both PEM files to form the SSLCertificateChainfile CorpChain.pem you include in the apache ...


3

The way to run httpd as a different User|Group is to change the user or group directive in the httpd.conf file. User apache Group apache This though would only change the nobody in your output above to apache which I guess isn't what you want. To have httpd run as a particular user you are going to have to create and manage a configuration file for ...


3

When path references in an Apache configuration are not absolute (i.e. don't start with /) they are relative to the directory set in the ServerRoot directive. A common default for the ServerRoot is /etc/httpd making /etc/httpd/logs your log directory. Most packaged Apache versions create a symbolic link from /etc/httpd/logs to /var/log/httpd. Either the ...


3

mod_perl is no longer in base but it IS available in EPEL 7; so my suggestion is you get it from there. Note that EPEL 7 is still in 'beta'. http://dl.fedoraproject.org/pub/epel/beta/7/SRPMS/repoview/mod_perl.html http://developerblog.redhat.com/2014/02/20/rhel-7-beta-extra-packages/ ..and I'm the one who wrote the blog post mentioned by Jakov.


2

RHEL 7 uses Apache 2.4, and there is still no mod_perl package for it. mod_perl was on a list of removed packages in beta version. More info: https://www.huntingbears.nl/2013/12/17/no-mod_perl-in-rhel-7-and-centos-7/ What I would suggest is to get Fedora 20 or 19 src.rpm from pkgs.org, spin up development RHEL 7 box and rebuild package for RHEL 7.


1

You want your Apache to not even redirect that junk in the first place. RewriteEngine on RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/wp-login.php - [R=401] Deny all with 401, assuming /wp-login.php is the URI in question.


1

you could be parsing the mod_status w/ExtendedStatus On output. This is the real-time state of all workers/threads/children. plus SSL. Beware, this makes it hard to track actual request counts if the server is responding fast (you don't see what happens between status reloads - only the most recent request of a worker). curl ...


1

Did you look at the format of the dates in you apache logs ? On the systems I have to hand (CentOS) that have their access logs in /var/log/httpd the date format is 15/Jun/2014:11:48:27 +0000 If yours is the same then you need date -d -1hour +'%d/%b/%Y:%H' as your date command. If it's different then you need to show us the format that the log file ...


1

You are doing a recursive grep (-R) - which is useless in this case- I presume you don't have any subdirs under /var/log/httpd (if that's standard distro). What you want to do is discard everything before a line that has timestamp from hour ago. Also, access and error logs typically have different timestamps in them. So, for example, access log has the ...



Only top voted, non community-wiki answers of a minimum length are eligible