Advertisement
Guest User

Apache Full Config

a guest
Jun 5th, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.97 KB | None | 0 0
  1. ServerRoot "/etc/httpd"
  2.  
  3. Listen 80
  4.  
  5. LoadModule authn_file_module modules/mod_authn_file.so
  6. LoadModule authn_default_module modules/mod_authn_default.so
  7. LoadModule authz_host_module modules/mod_authz_host.so
  8. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  9. LoadModule authz_user_module modules/mod_authz_user.so
  10. LoadModule authz_owner_module modules/mod_authz_owner.so
  11. LoadModule authz_default_module modules/mod_authz_default.so
  12. LoadModule auth_basic_module modules/mod_auth_basic.so
  13. LoadModule auth_digest_module modules/mod_auth_digest.so
  14. LoadModule include_module modules/mod_include.so
  15. LoadModule filter_module modules/mod_filter.so
  16. LoadModule deflate_module modules/mod_deflate.so
  17. LoadModule log_config_module modules/mod_log_config.so
  18. #LoadModule logio_module modules/mod_logio.so
  19. LoadModule env_module modules/mod_env.so
  20. LoadModule mime_magic_module modules/mod_mime_magic.so
  21. LoadModule headers_module modules/mod_headers.so
  22. LoadModule setenvif_module modules/mod_setenvif.so
  23. LoadModule proxy_module modules/mod_proxy.so
  24. LoadModule proxy_http_module modules/mod_proxy_http.so
  25. LoadModule mime_module modules/mod_mime.so
  26. LoadModule status_module modules/mod_status.so
  27. LoadModule autoindex_module modules/mod_autoindex.so
  28. LoadModule asis_module modules/mod_asis.so
  29. LoadModule cgid_module modules/mod_cgid.so
  30. LoadModule negotiation_module modules/mod_negotiation.so
  31. LoadModule dir_module modules/mod_dir.so
  32. LoadModule actions_module modules/mod_actions.so
  33. LoadModule userdir_module modules/mod_userdir.so
  34. LoadModule alias_module modules/mod_alias.so
  35. LoadModule rewrite_module modules/mod_rewrite.so
  36.  
  37. User http
  38. Group http
  39.  
  40. ServerAdmin admin
  41. ServerName *:80
  42.  
  43. <Directory />
  44. Options FollowSymLinks
  45. AllowOverride All
  46.  
  47. RewriteEngine on
  48. RewriteCond %{HTTP:Transfer-Encoding} chunked
  49. RewriteRule ^(.*)$ http://localhost:412/$1 [P]
  50. </Directory>
  51.  
  52. <Directory "/var/services/web">
  53. Options MultiViews FollowSymLinks ExecCGI
  54. AllowOverride All
  55. Order allow,deny
  56. Allow from all
  57. </Directory>
  58.  
  59. <Directory "/usr/syno/synoman/phpsrc/web">
  60. Options MultiViews FollowSymLinks ExecCGI
  61. AllowOverride None
  62. Order allow,deny
  63. Allow from all
  64. </Directory>
  65.  
  66. <Directory "/usr/syno/synoman/empty/web">
  67. Options MultiViews FollowSymLinks ExecCGI
  68. AllowOverride None
  69. Order allow,deny
  70. Allow from all
  71. </Directory>
  72.  
  73. <IfModule dir_module>
  74. DirectoryIndex index.html index.htm index.cgi index.php index.php5
  75. </IfModule>
  76.  
  77. <FilesMatch "^\.ht">
  78. Order allow,deny
  79. Deny from all
  80. Satisfy All
  81. </FilesMatch>
  82.  
  83. ErrorLog /var/log/httpd/user-error_log
  84. #ErrorLog /dev/null
  85. TraceEnable off
  86.  
  87. LogLevel error
  88.  
  89. <IfModule log_config_module>
  90. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  91. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  92.  
  93. <IfModule logio_module>
  94. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  95. </IfModule>
  96.  
  97. CustomLog /dev/null combined
  98. #CustomLog /var/log/httpd/user-access_log combined
  99. </IfModule>
  100.  
  101. <IfModule alias_module>
  102. Alias /webman/pingpong.php /usr/syno/synoman/phpsrc/pingpong.php
  103. </IfModule>
  104.  
  105. ScriptSock /run/httpd/user-cgisock
  106.  
  107. DefaultType text/plain
  108.  
  109. <IfModule mime_module>
  110. TypesConfig conf/mime.types
  111. AddEncoding x-compress Z
  112. AddEncoding x-gzip gz tgz
  113. AddType application/x-compress .Z
  114. AddType application/x-gzip .gz .tgz
  115. AddType image/x-icon .ico
  116. AddHandler cgi-script .cgi
  117. </IfModule>
  118.  
  119. MIMEMagicFile conf/magic
  120.  
  121. <IfDefine HAVE_PHP>
  122. ErrorDocument 403 /webdefault/sample.php?status=403&from=user
  123. ErrorDocument 404 /webdefault/sample.php?status=404&from=user
  124. ErrorDocument 500 /webdefault/sample.php?status=500&from=user
  125.  
  126.  
  127. *****************Include conf/extra/mod_fastcgi.conf****************************
  128. LoadModule fastcgi_module modules/mod_fastcgi.so
  129. <IfModule fastcgi_module>
  130. FastCgiExternalServer /php-fpm-handler -socket /run/php-fpm/php-fpm.sock -idle-timeout 3600
  131. AddHandler php5-fastcgi .php .php3 .php4 .php5 .phtml
  132. Action php5-fastcgi /php-fpm-handler.fcgi
  133. ScriptAlias /php-fpm-handler.fcgi /php-fpm-handler
  134. </IfModule>
  135. *********************************************************************************
  136. </IfDefine>
  137.  
  138. EnableMMAP off
  139.  
  140. *******************************************Include conf/extra/httpd-mpm.conf-user*******************************************
  141. <IfModule !mpm_netware_module>
  142. PidFile /run/httpd/httpd-user.pid
  143. </IfModule>
  144.  
  145. <IfModule !mpm_winnt_module>
  146. <IfModule !mpm_netware_module>
  147. LockFile /run/httpd/httpd-user.lock
  148. </IfModule>
  149. </IfModule>
  150.  
  151. <IfModule mpm_worker_module>
  152. StartServers 2
  153. MinSpareThreads 16
  154. MaxSpareThreads 48
  155. ThreadsPerChild 32
  156. MaxRequestsPerChild 0
  157. Include conf/extra/httpd-mpm.conf-max-connection
  158. </IfModule>
  159. **************************************************************************************
  160.  
  161.  
  162.  
  163. *******************************************Include conf/extra/httpd-autoindex.conf-user*******************************************
  164. IndexOptions FancyIndexing HTMLTable VersionSort
  165.  
  166. Alias /icons/ "/usr/share/httpd/icons/"
  167.  
  168. <Directory "/usr/share/httpd/icons">
  169. Options Indexes MultiViews FollowSymLinks
  170. AllowOverride None
  171. Order allow,deny
  172. Allow from all
  173. </Directory>
  174.  
  175. <IfDefine HAVE_PHP>
  176. Alias /webdefault/ "/usr/syno/synoman/phpsrc/web/"
  177. </IfDefine>
  178.  
  179. <IfDefine !HAVE_PHP>
  180. Alias /webdefault/ "/usr/syno/synoman/empty/web/"
  181. </IfDefine>
  182.  
  183. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  184.  
  185. AddIconByType (TXT,/icons/text.gif) text/*
  186. AddIconByType (IMG,/icons/image2.gif) image/*
  187. AddIconByType (SND,/icons/sound2.gif) audio/*
  188. AddIconByType (VID,/icons/movie.gif) video/*
  189.  
  190. AddIcon /icons/binary.gif .bin .exe
  191. AddIcon /icons/binhex.gif .hqx
  192. AddIcon /icons/tar.gif .tar
  193. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  194. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  195. AddIcon /icons/a.gif .ps .ai .eps
  196. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  197. AddIcon /icons/text.gif .txt
  198. AddIcon /icons/c.gif .c
  199. AddIcon /icons/p.gif .pl .py
  200. AddIcon /icons/f.gif .for
  201. AddIcon /icons/dvi.gif .dvi
  202. AddIcon /icons/uuencoded.gif .uu
  203. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  204. AddIcon /icons/tex.gif .tex
  205. AddIcon /icons/bomb.gif core
  206.  
  207. AddIcon /icons/back.gif ..
  208. AddIcon /icons/hand.right.gif README
  209. AddIcon /icons/folder.gif ^^DIRECTORY^^
  210. AddIcon /icons/blank.gif ^^BLANKICON^^
  211.  
  212. DefaultIcon /icons/unknown.gif
  213.  
  214. ReadmeName README.html
  215. HeaderName HEADER.html
  216.  
  217. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  218. **************************************************************************************
  219.  
  220. *******************************************Include conf/extra/httpd-languages.conf-user*******************************************
  221. AddLanguage ca .ca
  222. AddLanguage cs .cz
  223. AddLanguage da .dk
  224. AddLanguage de .de
  225. AddLanguage el .el
  226. AddLanguage en .en
  227. AddLanguage eo .eo
  228. AddLanguage es .es
  229. AddLanguage et .et
  230. AddLanguage fr .fr
  231. AddLanguage he .he
  232. AddLanguage hr .hr
  233. AddLanguage it .it
  234. AddLanguage ja .ja
  235. AddLanguage ko .ko
  236. AddLanguage ltz .ltz
  237. AddLanguage nl .nl
  238. AddLanguage nn .nn
  239. AddLanguage no .no
  240. AddLanguage pl .po
  241. AddLanguage pt .pt
  242. AddLanguage pt-BR .pt-br
  243. AddLanguage ru .ru
  244. AddLanguage sv .sv
  245. AddLanguage tr .tr
  246. AddLanguage zh-CN .zh-cn
  247. AddLanguage zh-tw .tw
  248. AddLanguage tw .tw
  249.  
  250. LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW
  251.  
  252. ForceLanguagePriority Prefer Fallback
  253.  
  254. AddCharset us-ascii.ascii .us-ascii
  255. AddCharset ISO-8859-1 .iso8859-1 .latin1
  256. AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
  257. AddCharset ISO-8859-3 .iso8859-3 .latin3
  258. AddCharset ISO-8859-4 .iso8859-4 .latin4
  259. AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
  260. AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
  261. AddCharset ISO-8859-7 .iso8859-7 .grk .greek
  262. AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
  263. AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
  264. AddCharset ISO-8859-10 .iso8859-10 .latin6
  265. AddCharset ISO-8859-13 .iso8859-13
  266. AddCharset ISO-8859-14 .iso8859-14 .latin8
  267. AddCharset ISO-8859-15 .iso8859-15 .latin9
  268. AddCharset ISO-8859-16 .iso8859-16 .latin10
  269. AddCharset ISO-2022-JP .iso2022-jp .jis
  270. AddCharset ISO-2022-KR .iso2022-kr .kis
  271. AddCharset ISO-2022-CN .iso2022-cn .cis
  272. AddCharset Big5.Big5 .big5 .b5
  273. AddCharset cn-Big5 .cn-big5
  274. # For russian, more than one charset is used (depends on client, mostly):
  275. AddCharset WINDOWS-1251 .cp-1251 .win-1251
  276. AddCharset CP866 .cp866
  277. AddCharset KOI8 .koi8
  278. AddCharset KOI8-E .koi8-e
  279. AddCharset KOI8-r .koi8-r .koi8-ru
  280. AddCharset KOI8-U .koi8-u
  281. AddCharset KOI8-ru .koi8-uk .ua
  282. AddCharset ISO-10646-UCS-2 .ucs2
  283. AddCharset ISO-10646-UCS-4 .ucs4
  284. AddCharset UTF-7 .utf7
  285. AddCharset UTF-8 .utf8
  286. AddCharset UTF-16 .utf16
  287. AddCharset UTF-16BE .utf16be
  288. AddCharset UTF-16LE .utf16le
  289. AddCharset UTF-32 .utf32
  290. AddCharset UTF-32BE .utf32be
  291. AddCharset UTF-32LE .utf32le
  292. AddCharset euc-cn .euc-cn
  293. AddCharset euc-gb .euc-gb
  294. AddCharset euc-jp .euc-jp
  295. AddCharset euc-kr .euc-kr
  296. #Not sure how euc-tw got in - IANA doesn't list it???
  297. AddCharset EUC-TW .euc-tw
  298. AddCharset gb2312 .gb2312 .gb
  299. AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
  300. AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
  301. AddCharset shift_jis .shift_jis .sjis
  302. **************************************************************************************
  303.  
  304. *******************************************Include conf/extra/httpd-default.conf-user*******************************************
  305. Timeout 3600
  306. KeepAlive On
  307. MaxKeepAliveRequests 100
  308. KeepAliveTimeout 5
  309. UseCanonicalName Off
  310. AccessFileName .htaccess
  311. ServerTokens Prod
  312. ServerSignature Off
  313. HostnameLookups Off
  314. **************************************************************************************
  315. <IfDefine SSL>
  316. <IfDefine !SPDY>
  317. LoadModule ssl_module modules/mod_ssl.so
  318. ********Include conf/extra/httpd-ssl.conf**********
  319. Listen 443
  320.  
  321. ************Include conf/extra/httpd-ssl.conf-common*************************
  322. SSLRandomSeed startup builtin
  323. SSLRandomSeed connect builtin
  324.  
  325. AddType application/x-x509-ca-cert .crt
  326. AddType application/x-pkcs7-crl .crl
  327.  
  328. SSLPassPhraseDialog builtin
  329.  
  330. SSLSessionCache "shmcb:/run/httpd/ssl_scache(512000)"
  331. SSLSessionCacheTimeout 300
  332.  
  333. SSLMutex "file:/run/httpd/ssl_mutex"
  334.  
  335. SSLCipherSuite HIGH:MEDIUM:!RC4:!aNULL
  336. SSLProtocol all -SSLv2
  337.  
  338. SSLCertificateFile "/usr/syno/etc/ssl/ssl.crt/server.crt"
  339. SSLCertificateKeyFile "/usr/syno/etc/ssl/ssl.key/server.key"
  340.  
  341. #SSLCertificateChainFile "/usr/syno/etc/ssl/ssl.intercrt/server-ca.crt"
  342.  
  343. #SSLCACertificatePath "/etc/httpd/conf/ssl.crt"
  344. #SSLCACertificateFile "/etc/httpd/conf/ssl.crt/ca-bundle.crt"
  345.  
  346. #SSLCARevocationPath "/etc/httpd/conf/ssl.crl"
  347. #SSLCARevocationFile "/etc/httpd/conf/ssl.crl/ca-bundle.crl"
  348. ********************************************************************
  349. NameVirtualHost *:443
  350.  
  351. Include /etc/httpd/sites-enabled-user/httpd-ssl-vhost.conf-user **** This file is empty*****
  352.  
  353. <VirtualHost *:443>
  354. ServerName *
  355. ServerAlias *
  356.  
  357. SSLEngine on
  358.  
  359. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  360. SSLOptions +StdEnvVars
  361. </FilesMatch>
  362.  
  363. BrowserMatch ".*MSIE [2-5]\..*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
  364. CustomLog /dev/null "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  365.  
  366. ******Include sites-enabled-user/*.conf********* ** 4 files there **
  367. **/etc/httpd/sites-enabled-user/SYNO.SDS.App.FileStation3.Instance.user_alias.conf**
  368. # Auto generated. Do not modify directly.
  369. # alias : file
  370. RewriteEngine on
  371.  
  372. # RewriteLog /var/log/rewrite.log
  373. # RewriteLogLevel 5
  374.  
  375. RewriteRule ^/file$ "/usr/syno/synoman/phpsrc/web/" [L]
  376. RewriteRule ^/file/$ "/usr/syno/synoman/phpsrc/web/" [L]
  377. RewriteRule ^/file/index.cgi "/usr/syno/synoman/phpsrc/web/index.cgi" [L,E=REDIRECT_ALIAS:file]
  378. **
  379.  
  380. **/etc/httpd/sites-enabled-user/SYNO.SDS.PhotoStation.conf**
  381. <IfDefine HAVE_PHP>
  382. AliasMatch ^/photo$ "/var/packages/PhotoStation/target/photo/"
  383. Alias /photo/ "/var/packages/PhotoStation/target/photo/"
  384. AliasMatch ^/blog$ "/var/packages/PhotoStation/target/photo/blog/"
  385. Alias /blog/ "/var/packages/PhotoStation/target/photo/blog/"
  386. RedirectMatch ^/blog/include/v(.*) /photo/get_video.php?$1
  387. AliasMatch ^/~([^\/]*)/photo$ "/var/packages/PhotoStation/target/photo/"
  388. AliasMatch ^/~([^\/]*)/photo/(.*) "/var/packages/PhotoStation/target/photo/$2"
  389. AliasMatch ^/~([^\/]*)/blog$ "/var/packages/PhotoStation/target/photo/blog/"
  390. AliasMatch ^/~([^\/]*)/blog/(.*) "/var/packages/PhotoStation/target/photo/blog/$2"
  391. RedirectMatch ^/~([^\/]*)/blog/include/v(.*) /~$1/photo/get_video.php?$2
  392. </IfDefine>
  393. <IfDefine !HAVE_PHP>
  394. AliasMatch ^/photo$ "/usr/syno/synoman/empty/photo/"
  395. Alias /photo/ "/usr/syno/synoman/empty/photo/"
  396. AliasMatch ^/blog$ "/usr/syno/synoman/empty/blog/"
  397. Alias /blog/ "/usr/syno/synoman/empty/blog/"
  398. RedirectMatch ^/blog/include/v(.*) /photo/get_video.php?$1
  399. AliasMatch ^/~([^\/]*)/photo$ "/usr/syno/synoman/empty/photo/"
  400. AliasMatch ^/~([^\/]*)/photo/(.*) "/usr/syno/synoman/empty/photo/$2"
  401. AliasMatch ^/~([^\/]*)/blog$ "/usr/syno/synoman/empty/blog/"
  402. AliasMatch ^/~([^\/]*)/blog/(.*) "/usr/syno/synoman/empty/blog/$2"
  403. RedirectMatch ^/~([^\/]*)/blog/include/v(.*) /~$1/photo/get_video.php?$2
  404. </IfDefine>
  405.  
  406. <Directory "/var/services/photo">
  407. Options MultiViews
  408. AllowOverride None
  409. Order allow,deny
  410. Allow from all
  411. </Directory>
  412. **
  413.  
  414. **/etc/httpd/sites-enabled-user/SYNO.SDS.DownloadStation.Application.user_alias.conf
  415. # Auto generated. Do not modify directly.
  416. # alias : download
  417. RewriteEngine on
  418.  
  419. # RewriteLog /var/log/rewrite.log
  420. # RewriteLogLevel 5
  421.  
  422. RewriteRule ^/download$ "/usr/syno/synoman/phpsrc/web/" [L]
  423. RewriteRule ^/download/$ "/usr/syno/synoman/phpsrc/web/" [L]
  424. RewriteRule ^/download/index.cgi "/usr/syno/synoman/phpsrc/web/index.cgi" [L,E=REDIRECT_ALIAS:download]
  425. **
  426.  
  427. **/etc/httpd/sites-enabled-user/SYNO.SDS.VideoStation.AppInstance.user_alias.conf**
  428. # Auto generated. Do not modify directly.
  429. # alias : video
  430. RewriteEngine on
  431.  
  432. # RewriteLog /var/log/rewrite.log
  433. # RewriteLogLevel 5
  434.  
  435. RewriteRule ^/video$ "/usr/syno/synoman/phpsrc/web/" [L]
  436. RewriteRule ^/video/$ "/usr/syno/synoman/phpsrc/web/" [L]
  437. RewriteRule ^/video/index.cgi "/usr/syno/synoman/phpsrc/web/index.cgi" [L,E=REDIRECT_ALIAS:video]
  438. **
  439. </VirtualHost>
  440.  
  441.  
  442. ***************************************************
  443. </IfDefine>
  444. <IfDefine SPDY>
  445. LoadModule ssl_module modules/mod_ssl_npn.so
  446. *********Include conf/extra/httpd-ssl.conf*********
  447. **Already explicited above, skipped here to add some clarity (at least try to)
  448. *********
  449.  
  450. *********Include conf/extra/mod_spdy.conf*********
  451. LoadModule spdy_module modules/mod_spdy.so
  452.  
  453. <IfModule spdy_module>
  454. SpdyEnabled on
  455. #SpdyMaxThreadsPerProcess 30
  456. #SpdyMaxStreamsPerConnection 100
  457. #SpdyDebugLoggingVerbosity 5
  458. #SpdyDebugUseSpdyForNonSslConnections 3
  459. </IfModule>
  460. *********
  461. </IfDefine>
  462. </IfDefine>
  463.  
  464. <IfModule deflate_module>
  465. DeflateCompressionLevel 2
  466. AddOutputFilterByType DEFLATE text/html text/plain text/xml
  467. AddOutputFilter DEFLATE js css
  468. BrowserMatch ^Mozilla/4 gzip-only-text/html
  469. BrowserMatch ^Mozilla/4\.[0678] no-gzip
  470. BrowserMatch \bMSIE\s7 !no-gzip !gzip-only-text/html
  471. </IfModule>
  472.  
  473.  
  474. <Files *.js>
  475. Header unset Etag
  476. </Files>
  477.  
  478. <Files *.css>
  479. Header unset Etag
  480. </Files>
  481.  
  482. # For CVS-2001-1446
  483. <Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
  484. Order allow,deny
  485. Deny from all
  486. Satisfy All
  487. </Files>
  488.  
  489. # For @eaDir
  490. <DirectoryMatch "@eaDir">
  491. Order allow,deny
  492. Deny from all
  493. Satisfy All
  494. </DirectoryMatch>
  495.  
  496. # For CVE-2003-1418
  497. FileETag MTime Size
  498.  
  499. <VirtualHost *:80>
  500. Include sites-enabled-user/*.conf **Already explicited above***
  501. </VirtualHost>
  502.  
  503. **include conf/extra/mod_xsendfile.conf-user**
  504. LoadModule xsendfile_module modules/mod_xsendfile.so
  505.  
  506. XSendFile on
  507. XSendFilePath /var/services/web /var/services/homes
  508. SetEnv MOD_X_SENDFILE_ENABLED yes
  509. **
  510.  
  511. **Include conf/extra/httpd-reqtimeout.conf**
  512. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  513.  
  514. <IfModule reqtimeout_module>
  515. RequestReadTimeout header=10-20,MinRate=500
  516. RequestReadTimeout body=10,MinRate=500
  517. </IfModule>
  518. **
  519.  
  520. **Include /volume1/Administration/vhost-dbe/httpd-FILESTATION-vh.conf-user** <=== This is the part that is not working, the 443 part
  521. <IfModule !proxy_module>
  522. LoadModule proxy_module modules/mod_proxy.so
  523. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  524. LoadModule proxy_http_module modules/mod_proxy_http.so
  525. </IfModule>
  526.  
  527. <VirtualHost *:80>
  528. ServerName filestation.domain.com
  529. Redirect / https://filestation.domain.com:443
  530. </VirtualHost>
  531.  
  532. NameVirtualHost *:443
  533. <VirtualHost *:443>
  534. ServerName filestation.domain.com
  535. SSLEngine on
  536. SSLProxyEngine on
  537. SSLCipherSuite HIGH:MEDIUM
  538. SSLProtocol all -SSLv2
  539. SSLCertificateFile /usr/syno/etc/ssl/ssl.crt/server.crt
  540. SSLCertificateKeyFile /usr/syno/etc/ssl/ssl.key/server.key
  541. ProxyRequests Off
  542. ProxyVia Off
  543. <Proxy *>
  544. Order deny,allow
  545. Allow from all
  546. </Proxy>
  547. ProxyPass / https://localhost:7001/
  548. ProxyPassReverse / https://localhost:7001/
  549. **
  550.  
  551. **Include /etc/httpd/conf/extra/httpd-userdir.conf-user**
  552. LoadModule suphp_module modules/mod_suphp.so
  553.  
  554. UserDir www
  555.  
  556. <Directory "/var/services/homes/">
  557. AllowOverride AuthConfig FileInfo Indexes Limit
  558. Options MultiViews +ExecCGI FollowSymLinks
  559.  
  560. Order allow,deny
  561. Allow from all
  562.  
  563. AddHandler application/x-httpd-suphp .php .php3 .php4 .php5 .phtml
  564.  
  565. suPHP_Engine on
  566. suPHP_AddHandler application/x-httpd-suphp
  567.  
  568. ErrorDocument 403 /webdefault/sample.php?status=403&subweb=www
  569. ErrorDocument 404 /webdefault/sample.php?status=404&subweb=www
  570. ErrorDocument 500 /webdefault/sample.php?status=500&subweb=www
  571. </Directory>
  572. **
  573.  
  574. **Include /etc/httpd/sites-enabled-user/httpd-vhost.conf-user** This file is empty
  575.  
  576. DocumentRoot "/var/services/web"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement