Squid configuration directive rewrite
Available in: 2.HEAD
Configuration Details:
Option Name: | rewrite |
---|---|
Replaces: | |
Requires: | |
Default Value: | none |
Suggested Config: |
|
Secifiy an internal redirection rule. If rewrite_program is defined Then these rules are ignored. redirect dsturl acl [acl [acl ..]] A redirect is applied when all acls are matched. If dsturl is "-" the redirect does nothing. dsturl may start with a status code sent directly to user. Valid status codes: 301:http://.... Means respond with a 301 to user. 302:http://.... Means respond with a 302 to user. 303:http://.... Means respond with a 303 to user. 307:http://.... Means respond with a 307 to user. dsturl may have format codes preceeded by %. Format: %[#][argument]formatcode # URL quoted output format Valid format codes: >a Client source IP address la Local IP address (http_port) lp Local port number (http_port) ts Seconds since epoch tu subsecond time (milliseconds, %03d) un User name ul User login from authentication ui User name from ident ue User name from external acl rm Request method (GET/POST etc) ru Request URL rp Request path rh Request host from URL rH Request Host header rP Request protocol et Tag returned by external acl ea Log string returned by external acl % a literal % character |
|
Search
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Help Out or Donate
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
Miscellaneous
- Developer Resources
- Related Writings
- Related Software:
- Squid Artwork