Xensoft
  • Home
  • Command Line
  • Best Practices
  • Scripting
  • Books
  • Riddles
Sign in Subscribe

Apache

A collection of 3 posts
Apache

Use Apache as a Reverse Proxy to another Service

If you've got another web application running on your server, but still want it served up on port 80 or 443 you can use Apache's mod_proxy to forward traffic from Apache to your application. An example would be if your web application is running on http://localhost:8080 you
Apr 27, 2014 1 min read
Apache

Redirect Web Traffic to Another Sub-domain (e.g. www) or HTTP to HTTPS

Using the mod_rewrite module you can configure Apache to redirect web traffic from one sub-domain to another. Usually used to redirect a bare domain ( http://xensoft.com) to the www sub-domain (http://www.xensoft.com). First make sure you're loading the mod_rewrite module in your httpd.conf or
Apr 16, 2014 1 min read
CLI

Find IPs Accessing your Site Most

List IPs that have made requests to an Apache server in ascending order based on the number of requests. { cat /var/log/httpd/access.log!(*.gz) & gzip -dc /var/log/httpd/access.log.*.gz; } \ | cut -d ' ' -f 1 | sort | uniq -c | sort -n 337 8.29.198.25
Nov 3, 2013 1 min read
Page 1 of 1
Xensoft © 2025
  • Sign up
Powered by Ghost