Documentation ¶
Index ¶
- func DisableDangerousForSslRewriteRules(content []string) ([]string, bool)
- func Escape(filePath string) string
- func GetIPFromListen(listen string) string
- func IsPortListened(listens []string, port string) bool
- func IsRewriteRuleDangerousForSsl(line string) bool
- func RemoveClosingHostTag(lines []string)
- func TranslateFnmatchToRegex(fnmatchStr string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIPFromListen ¶
GetIPFromListen returns IP address from Listen directive statement
func IsPortListened ¶
IsPortListened checks if port in the list
func IsRewriteRuleDangerousForSsl ¶
IsRewriteRuleDangerousForSsl checks if provided rewrite rule potentially can not be used for the virtual host with ssl e.g: RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,QSA,R=permanent] Copying the above line to the ssl vhost would cause a redirection loop.
func RemoveClosingHostTag ¶
func RemoveClosingHostTag(lines []string)
RemoveClosingHostTag removes closing tag </virtualhost> for the virtualhost block
func TranslateFnmatchToRegex ¶
TranslateFnmatchToRegex converts a shell PATTERN to a regular expression string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.