mod_rewrite in centos

#2
Contents of the openlitespeed.conf :

.
.
.
.
.
.
}
extProcessor dainternal {
type proxy
address uds://usr/local/directadmin/shared/internal.sock
}
rewrite {
enable 1
autoLoadHtaccess 1
RewriteCond %{HTTP:X-Forwarded-Proto} https [NC]
RewriteRule . - [E=HTTPS:eek:n]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Mail auto configuration (Thunderbird, MS Outlook)
RewriteRule ^/\.well-known/autoconfig/mail/config-v1\.1\.xml$|^/([Aa]utodiscover)/\1\.xml$ http://dainternal/$0 [P,L]
rewrite {
enable 1
autoLoadHtaccess 1
}
}
# include aliases
include /usr/local/lsws/conf/httpd-alias.conf
}
.
.
.
.
.
.
 
Top