mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
FIX #1003 Defautl redirect for Apache
This commit is contained in:
parent
eaef045070
commit
4381ee40b2
@ -90,7 +90,7 @@ function loadServerSettings (serverType, usageType) {
|
|||||||
/* Add redirect from www. -> non www. */
|
/* Add redirect from www. -> non www. */
|
||||||
defaultVhostTemplate = '<VirtualHost *:80>\r\n';
|
defaultVhostTemplate = '<VirtualHost *:80>\r\n';
|
||||||
defaultVhostTemplate += ' ServerName www.%domain%\r\n';
|
defaultVhostTemplate += ' ServerName www.%domain%\r\n';
|
||||||
defaultVhostTemplate += ' ServerName Redirect 301 / http://%domain%/\r\n';
|
defaultVhostTemplate += ' Redirect 301 / http://%domain%/\r\n';
|
||||||
defaultVhostTemplate += '</VirtualHost>\r\n';
|
defaultVhostTemplate += '</VirtualHost>\r\n';
|
||||||
|
|
||||||
defaultVhostTemplate += '<VirtualHost *:80>\r\n';
|
defaultVhostTemplate += '<VirtualHost *:80>\r\n';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user