Changeset View
Changeset View
Standalone View
Standalone View
source/howtos/nginx-webserver.rst
Show All 31 Lines | #. Replace the contents of :file:`/etc/nginx/conf.d/default.conf`: | ||||
.. parsed-literal:: | .. parsed-literal:: | ||||
# :command:`cat > /etc/nginx/conf.d/default.conf` << EOF | # :command:`cat > /etc/nginx/conf.d/default.conf` << EOF | ||||
server { | server { | ||||
listen 8080 default_server; | listen 8080 default_server; | ||||
server_name localhost:8080; | server_name localhost:8080; | ||||
# support roundcubemail secure urls | # support |roundcubemail| secure urls | ||||
rewrite "^/roundcubemail/[a-zA-Z0-9]{16}/(.*)" /roundcubemail/$1; | rewrite "^/roundcubemail/[a-zA-Z0-9]{16}/(.*)" /roundcubemail/$1; | ||||
# roundcube | # roundcube | ||||
location /roundcubemail { | location /roundcubemail { | ||||
alias /usr/share/roundcubemail/public_html; | alias /usr/share/roundcubemail/public_html; | ||||
index index.php; | index index.php; | ||||
location ~ \\.php$ { | location ~ \\.php$ { | ||||
▲ Show 20 Lines • Show All 1,043 Lines • Show Last 20 Lines |