Bry8Star

httpd.conf 01

Sep 27th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.31 KB | None | 0 0
  1. # httpd.conf
  2. # - - - - - - - -
  3. #
  4. # This is the main Apache server configuration file. It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
  7. # In particular, see
  8. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
  9. # for a discussion of each configuration directive.
  10. #
  11. #
  12. # Do NOT simply read the instructions in here without understanding
  13. # what they do. They're here only as hints or reminders. If you are unsure
  14. # consult the online docs. You have been warned.
  15. #
  16. # The configuration directives are grouped into three basic sections:
  17. # 1. Directives that control the operation of the Apache server process as a
  18. # whole (the 'global environment').
  19. # 2. Directives that define the parameters of the 'main' or 'default' server,
  20. # which responds to requests that aren't handled by a virtual host.
  21. # These directives also provide default values for the settings
  22. # of all virtual hosts.
  23. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  24. # different IP addresses or hostnames and have them handled by the
  25. # same Apache server process.
  26. #
  27. # Configuration and logfile names: If the filenames you specify for many
  28. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  29. # server will use that explicit path. If the filenames do *not* begin
  30. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  31. # with ServerRoot set to "/etc/httpd" will be interpreted by the
  32. # server as "/etc/httpd/logs/foo.log".
  33. #
  34.  
  35. ### Section 1: Global Environment
  36. #
  37. # The directives in this section affect the overall operation of Apache,
  38. # such as the number of concurrent requests it can handle or where it
  39. # can find its configuration files.
  40. #
  41.  
  42. #
  43. # Don't give away too much information about all the subcomponents
  44. # we are running. Comment out this line if you don't mind remote sites
  45. # finding out what major optional modules you are running
  46. ServerTokens OS
  47.  
  48. #
  49. # ServerRoot: The top of the directory tree under which the server's
  50. # configuration, error, and log files are kept.
  51. #
  52. # NOTE! If you intend to place this on an NFS (or otherwise network)
  53. # mounted filesystem then please read the LockFile documentation
  54. # (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
  55. # you will save yourself a lot of trouble.
  56. #
  57. # Do NOT add a slash at the end of the directory path.
  58. #
  59. ServerRoot "/etc/httpd"
  60.  
  61. #
  62. # PidFile: The file in which the server should record its process
  63. # identification number when it starts. Note the PIDFILE variable in
  64. # /etc/sysconfig/httpd must be set appropriately if this location is
  65. # changed.
  66. #
  67. PidFile run/httpd.pid
  68.  
  69. #
  70. # Timeout: The number of seconds before receives and sends time out.
  71. #
  72. TimeOut 60
  73.  
  74. #
  75. # KeepAlive: Whether or not to allow persistent connections (more than
  76. # one request per connection). Set to "Off" to deactivate.
  77. #
  78. KeepAlive on
  79.  
  80. #
  81. # MaxKeepAliveRequests: The maximum number of requests to allow
  82. # during a persistent connection. Set to 0 to allow an unlimited amount.
  83. # We recommend you leave this number high, for maximum performance.
  84. #
  85. MaxKeepAliveRequests 100
  86.  
  87. #
  88. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  89. # same client on the same connection.
  90. #
  91. KeepAliveTimeout 15
  92.  
  93. ##
  94. ## Server-Pool Size Regulation (MPM specific)
  95. ##
  96.  
  97. # prefork MPM
  98. # StartServers: number of server processes to start
  99. # MinSpareServers: minimum number of server processes which are kept spare
  100. # MaxSpareServers: maximum number of server processes which are kept spare
  101. # ServerLimit: maximum value for MaxClients for the lifetime of the server
  102. # MaxClients: maximum number of server processes allowed to start
  103. # MaxRequestsPerChild: maximum number of requests a server process serves
  104. <IfModule prefork.c>
  105. StartServers 8
  106. MinSpareServers 5
  107. MaxSpareServers 20
  108. ServerLimit 256
  109. MaxClients 256
  110. MaxRequestsPerChild 4000
  111. </IfModule>
  112.  
  113. # worker MPM
  114. # StartServers: initial number of server processes to start
  115. # MaxClients: maximum number of simultaneous client connections
  116. # MinSpareThreads: minimum number of worker threads which are kept spare
  117. # MaxSpareThreads: maximum number of worker threads which are kept spare
  118. # ThreadsPerChild: constant number of worker threads in each server process
  119. # MaxRequestsPerChild: maximum number of requests a server process serves
  120. <IfModule worker.c>
  121. StartServers 4
  122. MaxClients 300
  123. MinSpareThreads 25
  124. MaxSpareThreads 75
  125. ThreadsPerChild 25
  126. MaxRequestsPerChild 0
  127. </IfModule>
  128.  
  129. #
  130. # Listen: Allows you to bind Apache to specific IP addresses and/or
  131. # ports, in addition to the default. See also the <VirtualHost>
  132. # directive.
  133. #
  134. # Change this to Listen on specific IP addresses as shown below to
  135. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  136. #
  137. #Listen 12.34.56.78:80
  138. Listen *:80
  139.  
  140. #Listen *:443
  141.  
  142. #
  143. # Dynamic Shared Object (DSO) Support
  144. #
  145. # To be able to use the functionality of a module which was built as a DSO you
  146. # have to place corresponding `LoadModule' lines at this location so the
  147. # directives contained in it are actually available _before_ they are used.
  148. # Statically compiled modules (those listed by `httpd -l') do not need
  149. # to be loaded here.
  150. #
  151. # Example:
  152. # LoadModule foo_module modules/mod_foo.so
  153. #
  154. LoadModule auth_basic_module modules/mod_auth_basic.so
  155. LoadModule auth_digest_module modules/mod_auth_digest.so
  156. LoadModule authn_file_module modules/mod_authn_file.so
  157. LoadModule authn_alias_module modules/mod_authn_alias.so
  158. LoadModule authn_anon_module modules/mod_authn_anon.so
  159. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  160. LoadModule authn_default_module modules/mod_authn_default.so
  161. LoadModule authz_host_module modules/mod_authz_host.so
  162. LoadModule authz_user_module modules/mod_authz_user.so
  163. LoadModule authz_owner_module modules/mod_authz_owner.so
  164. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  165. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  166. LoadModule authz_default_module modules/mod_authz_default.so
  167. LoadModule ldap_module modules/mod_ldap.so
  168. LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  169. LoadModule include_module modules/mod_include.so
  170. LoadModule log_config_module modules/mod_log_config.so
  171. LoadModule logio_module modules/mod_logio.so
  172. LoadModule env_module modules/mod_env.so
  173. LoadModule ext_filter_module modules/mod_ext_filter.so
  174. LoadModule mime_magic_module modules/mod_mime_magic.so
  175. LoadModule expires_module modules/mod_expires.so
  176. LoadModule deflate_module modules/mod_deflate.so
  177. LoadModule headers_module modules/mod_headers.so
  178. LoadModule usertrack_module modules/mod_usertrack.so
  179. LoadModule setenvif_module modules/mod_setenvif.so
  180. LoadModule mime_module modules/mod_mime.so
  181. LoadModule dav_module modules/mod_dav.so
  182. LoadModule status_module modules/mod_status.so
  183. LoadModule autoindex_module modules/mod_autoindex.so
  184. LoadModule info_module modules/mod_info.so
  185. LoadModule dav_fs_module modules/mod_dav_fs.so
  186. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  187. LoadModule negotiation_module modules/mod_negotiation.so
  188. LoadModule dir_module modules/mod_dir.so
  189. LoadModule actions_module modules/mod_actions.so
  190. LoadModule speling_module modules/mod_speling.so
  191. LoadModule userdir_module modules/mod_userdir.so
  192. LoadModule alias_module modules/mod_alias.so
  193. LoadModule substitute_module modules/mod_substitute.so
  194. LoadModule rewrite_module modules/mod_rewrite.so
  195. LoadModule proxy_module modules/mod_proxy.so
  196. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  197. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  198. LoadModule proxy_http_module modules/mod_proxy_http.so
  199. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  200. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  201. LoadModule cache_module modules/mod_cache.so
  202. LoadModule suexec_module modules/mod_suexec.so
  203. LoadModule disk_cache_module modules/mod_disk_cache.so
  204. LoadModule cgi_module modules/mod_cgi.so
  205. LoadModule version_module modules/mod_version.so
  206.  
  207. #
  208. # The following modules are not loaded by default:
  209. #
  210. #LoadModule asis_module modules/mod_asis.so
  211. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  212. #LoadModule cern_meta_module modules/mod_cern_meta.so
  213. #LoadModule cgid_module modules/mod_cgid.so
  214. #LoadModule dbd_module modules/mod_dbd.so
  215. #LoadModule dumpio_module modules/mod_dumpio.so
  216. #LoadModule filter_module modules/mod_filter.so
  217. #LoadModule ident_module modules/mod_ident.so
  218. #LoadModule log_forensic_module modules/mod_log_forensic.so
  219. #LoadModule unique_id_module modules/mod_unique_id.so
  220. #
  221.  
  222. #
  223. # Load config files from the config directory "/etc/httpd/conf.d".
  224. #
  225. Include conf.d/*.conf
  226.  
  227. #
  228. # ExtendedStatus controls whether Apache will generate "full" status
  229. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  230. # Off) when the "server-status" handler is called. The default is Off.
  231. #
  232. #ExtendedStatus On
  233.  
  234. #
  235. # If you wish httpd to run as a different user or group, you must run
  236. # httpd as root initially and it will switch.
  237. #
  238. # User/Group: The name (or #number) of the user/group to run httpd as.
  239. # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  240. # . On HPUX you may not be able to use shared memory as nobody, and the
  241. # suggested workaround is to create a user www and use that user.
  242. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  243. # when the value of (unsigned)Group is above 60000;
  244. # don't use Group #-1 on these systems!
  245. #
  246. User apache
  247. Group apache
  248.  
  249. ### Section 2: 'Main' server configuration
  250. #
  251. # The directives in this section set up the values used by the 'main'
  252. # server, which responds to any requests that aren't handled by a
  253. # <VirtualHost> definition. These values also provide defaults for
  254. # any <VirtualHost> containers you may define later in the file.
  255. #
  256. # All of these directives may appear inside <VirtualHost> containers,
  257. # in which case these default settings will be overridden for the
  258. # virtual host being defined.
  259. #
  260.  
  261. #
  262. # ServerAdmin: Your address, where problems with the server should be
  263. # e-mailed. This address appears on some server-generated pages, such
  264. # as error documents. e.g. [email protected]
  265. #
  266. ServerAdmin root@localhost
  267.  
  268. #
  269. # ServerName gives the name and port that the server uses to identify itself.
  270. # This can often be determined automatically, but we recommend you specify
  271. # it explicitly to prevent problems during startup.
  272. #
  273. # If this is not set to valid DNS name for your host, server-generated
  274. # redirections will not work. See also the UseCanonicalName directive.
  275. #
  276. # If your host doesn't have a registered DNS name, enter its IP address here.
  277. # You will have to access it by its address anyway, and this will make
  278. # redirections work in a sensible way.
  279. #
  280. #ServerName www.example.com:80
  281.  
  282. #
  283. # UseCanonicalName: Determines how Apache constructs self-referencing
  284. # URLs and the SERVER_NAME and SERVER_PORT variables.
  285. # When set "Off", Apache will use the Hostname and Port supplied
  286. # by the client. When set "On", Apache will use the value of the
  287. # ServerName directive.
  288. #
  289. UseCanonicalName Off
  290.  
  291. #
  292. # DocumentRoot: The directory out of which you will serve your
  293. # documents. By default, all requests are taken from this directory, but
  294. # symbolic links and aliases may be used to point to other locations.
  295. #
  296. #DocumentRoot "/var/www/html"
  297. DocumentRoot "/home/main-domain-a/public_html"
  298.  
  299. #
  300. # Each directory to which Apache has access can be configured with respect
  301. # to which services and features are allowed and/or disabled in that
  302. # directory (and its subdirectories).
  303. #
  304. # First, we configure the "default" to be a very restrictive set of
  305. # features.
  306. #
  307. <Directory />
  308. Options FollowSymLinks
  309. AllowOverride None
  310. </Directory>
  311.  
  312. #
  313. # Note that from this point forward you must specifically allow
  314. # particular features to be enabled - so if something's not working as
  315. # you might expect, make sure that you have specifically enabled it
  316. # below.
  317. #
  318.  
  319. #
  320. # This should be changed to whatever you set DocumentRoot to.
  321. #
  322. #<Directory "/var/www/html">
  323. <Directory "/home/main-domain-a/public_html">
  324.  
  325. #
  326. # Possible values for the Options directive are "None", "All",
  327. # or any combination of:
  328. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  329. #
  330. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  331. # doesn't give it to you.
  332. #
  333. # The Options directive is both complicated and important. Please see
  334. # http://httpd.apache.org/docs/2.2/mod/core.html#options
  335. # for more information.
  336. #
  337. Options Indexes FollowSymLinks
  338.  
  339. #
  340. # AllowOverride controls what directives may be placed in .htaccess files.
  341. # It can be "All", "None", or any combination of the keywords:
  342. # Options FileInfo AuthConfig Limit
  343. #
  344. AllowOverride None
  345.  
  346. #
  347. # Controls who can get stuff from this server.
  348. #
  349. Order allow,deny
  350. Allow from all
  351.  
  352. </Directory>
  353.  
  354. #
  355. # UserDir: The name of the directory that is appended onto a user's home
  356. # directory if a ~user request is received.
  357. #
  358. # The path to the end user account 'public_html' directory must be
  359. # accessible to the webserver userid. This usually means that ~userid
  360. # must have permissions of 711, ~userid/public_html must have permissions
  361. # of 755, and documents contained therein must be world-readable.
  362. # Otherwise, the client will only receive a "403 Forbidden" message.
  363. #
  364. # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
  365. #
  366. <IfModule mod_userdir.c>
  367. #
  368. # UserDir is disabled by default since it can confirm the presence
  369. # of a username on the system (depending on home directory
  370. # permissions).
  371. #
  372. UserDir disabled
  373.  
  374. #
  375. # To enable requests to /~user/ to serve the user's public_html
  376. # directory, remove the "UserDir disabled" line above, and uncomment
  377. # the following line instead:
  378. #
  379. #UserDir public_html
  380.  
  381. </IfModule>
  382.  
  383. #
  384. # Control access to UserDir directories. The following is an example
  385. # for a site where these directories are restricted to read-only.
  386. #
  387. #<Directory /home/*/public_html>
  388. # AllowOverride FileInfo AuthConfig Limit
  389. # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  390. # <Limit GET POST OPTIONS>
  391. # Order allow,deny
  392. # Allow from all
  393. # </Limit>
  394. # <LimitExcept GET POST OPTIONS>
  395. # Order deny,allow
  396. # Deny from all
  397. # </LimitExcept>
  398. #</Directory>
  399.  
  400. #
  401. # DirectoryIndex: sets the file that Apache will serve if a directory
  402. # is requested.
  403. #
  404. # The index.html.var file (a type-map) is used to deliver content-
  405. # negotiated documents. The MultiViews Option can be used for the
  406. # same purpose, but it is much slower.
  407. #
  408. #DirectoryIndex index.html index.html.var
  409. DirectoryIndex index.html index.html.var index.php
  410.  
  411. #
  412. # AccessFileName: The name of the file to look for in each directory
  413. # for additional configuration directives. See also the AllowOverride
  414. # directive.
  415. #
  416. AccessFileName .htaccess
  417.  
  418. #
  419. # The following lines prevent .htaccess and .htpasswd files from being
  420. # viewed by Web clients.
  421. #
  422. <Files ~ "^\.ht">
  423. Order allow,deny
  424. Deny from all
  425. Satisfy All
  426. </Files>
  427.  
  428. #
  429. # TypesConfig describes where the mime.types file (or equivalent) is
  430. # to be found.
  431. #
  432. TypesConfig /etc/mime.types
  433.  
  434. #
  435. # DefaultType is the default MIME type the server will use for a document
  436. # if it cannot otherwise determine one, such as from filename extensions.
  437. # If your server contains mostly text or HTML documents, "text/plain" is
  438. # a good value. If most of your content is binary, such as applications
  439. # or images, you may want to use "application/octet-stream" instead to
  440. # keep browsers from trying to display binary files as though they are
  441. # text.
  442. #
  443. DefaultType text/plain
  444.  
  445. #
  446. # The mod_mime_magic module allows the server to use various hints from the
  447. # contents of the file itself to determine its type. The MIMEMagicFile
  448. # directive tells the module where the hint definitions are located.
  449. #
  450. <IfModule mod_mime_magic.c>
  451. # MIMEMagicFile /usr/share/magic.mime
  452. MIMEMagicFile conf/magic
  453. </IfModule>
  454.  
  455. #
  456. # HostnameLookups: Log the names of clients or just their IP addresses
  457. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  458. # The default is off because it'd be overall better for the net if people
  459. # had to knowingly turn this feature on, since enabling it means that
  460. # each client request will result in AT LEAST one lookup request to the
  461. # nameserver.
  462. #
  463. HostnameLookups Off
  464.  
  465. #
  466. # EnableMMAP: Control whether memory-mapping is used to deliver
  467. # files (assuming that the underlying OS supports it).
  468. # The default is on; turn this off if you serve from NFS-mounted
  469. # filesystems. On some systems, turning it off (regardless of
  470. # filesystem) can improve performance; for details, please see
  471. # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
  472. #
  473. #EnableMMAP off
  474.  
  475. #
  476. # EnableSendfile: Control whether the sendfile kernel support is
  477. # used to deliver files (assuming that the OS supports it).
  478. # The default is on; turn this off if you serve from NFS-mounted
  479. # filesystems. Please see
  480. # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
  481. #
  482. #EnableSendfile off
  483.  
  484. #
  485. # ErrorLog: The location of the error log file.
  486. # If you do not specify an ErrorLog directive within a <VirtualHost>
  487. # container, error messages relating to that virtual host will be
  488. # logged here. If you *do* define an error logfile for a <VirtualHost>
  489. # container, that host's errors will be logged there and not here.
  490. #
  491. ErrorLog logs/error_log
  492.  
  493. #
  494. # LogLevel: Control the number of messages logged to the error_log.
  495. # Possible values include: debug, info, notice, warn, error, crit,
  496. # alert, emerg.
  497. #
  498. LogLevel warn
  499.  
  500. #
  501. # The following directives define some format nicknames for use with
  502. # a CustomLog directive (see below).
  503. #
  504. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  505. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  506. LogFormat "%{Referer}i -> %U" referer
  507. LogFormat "%{User-agent}i" agent
  508.  
  509. # "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
  510. # requires the mod_logio module to be loaded.
  511. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  512.  
  513. #
  514. # The location and format of the access logfile (Common Logfile Format).
  515. # If you do not define any access logfiles within a <VirtualHost>
  516. # container, they will be logged here. Contrariwise, if you *do*
  517. # define per-<VirtualHost> access logfiles, transactions will be
  518. # logged therein and *not* in this file.
  519. #
  520. #CustomLog logs/access_log common
  521.  
  522. #
  523. # If you would like to have separate agent and referer logfiles, uncomment
  524. # the following directives.
  525. #
  526. #CustomLog logs/referer_log referer
  527. #CustomLog logs/agent_log agent
  528.  
  529. #
  530. # For a single logfile with access, agent, and referer information
  531. # (Combined Logfile Format), use the following directive:
  532. #
  533. CustomLog logs/access_log combined
  534.  
  535. #
  536. # Optionally add a line containing the server version and virtual host
  537. # name to server-generated pages (internal error documents, FTP directory
  538. # listings, mod_status and mod_info output etc., but not CGI generated
  539. # documents or custom error documents).
  540. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  541. # Set to one of: On | Off | EMail
  542. #
  543. ServerSignature On
  544.  
  545. #
  546. # Aliases: Add here as many aliases as you need (with no limit). The format is
  547. # Alias fakename realname
  548. #
  549. # Note that if you include a trailing / on fakename then the server will
  550. # require it to be present in the URL. So "/icons" isn't aliased in this
  551. # example, only "/icons/". If the fakename is slash-terminated, then the
  552. # realname must also be slash terminated, and if the fakename omits the
  553. # trailing slash, the realname must also omit it.
  554. #
  555. # We include the /icons/ alias for FancyIndexed directory listings. If you
  556. # do not use FancyIndexing, you may comment this out.
  557. #
  558. #Alias /icons/ "/var/www/icons/"
  559. Alias /icons/ "/home/main-domain-a/public_html/icons/"
  560.  
  561. #<Directory "/var/www/icons">
  562. <Directory "/home/main-domain-a/public_html/icons">
  563. Options Indexes MultiViews FollowSymLinks
  564. AllowOverride None
  565. Order allow,deny
  566. Allow from all
  567. </Directory>
  568.  
  569. #
  570. # WebDAV module configuration section.
  571. #
  572. <IfModule mod_dav_fs.c>
  573. # Location of the WebDAV lock database.
  574. DAVLockDB /var/lib/dav/lockdb
  575. </IfModule>
  576.  
  577. #
  578. # ScriptAlias: This controls which directories contain server scripts.
  579. # ScriptAliases are essentially the same as Aliases, except that
  580. # documents in the realname directory are treated as applications and
  581. # run by the server when requested rather than as documents sent to the client.
  582. # The same rules about trailing "/" apply to ScriptAlias directives as to
  583. # Alias.
  584. #
  585. #ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  586. ScriptAlias /cgi-bin/ "/home/main-domain-a/cgi-bin/"
  587.  
  588. #
  589. # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
  590. # CGI directory exists, if you have that configured.
  591. #
  592. #<Directory "/var/www/cgi-bin">
  593. <Directory "/home/main-domain-a/cgi-bin">
  594. AllowOverride None
  595. Options None
  596. Order allow,deny
  597. Allow from all
  598. </Directory>
  599.  
  600. #
  601. # Redirect allows you to tell clients about documents which used to exist in
  602. # your server's namespace, but do not anymore. This allows you to tell the
  603. # clients where to look for the relocated document.
  604. # Example:
  605. # Redirect permanent /foo http://www.example.com/bar
  606.  
  607. #
  608. # Directives controlling the display of server-generated directory listings.
  609. #
  610.  
  611. #
  612. # IndexOptions: Controls the appearance of server-generated directory
  613. # listings.
  614. #
  615. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
  616.  
  617. #
  618. # AddIcon* directives tell the server which icon to show for different
  619. # files or filename extensions. These are only displayed for
  620. # FancyIndexed directories.
  621. #
  622. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  623.  
  624. AddIconByType (TXT,/icons/text.gif) text/*
  625. AddIconByType (IMG,/icons/image2.gif) image/*
  626. AddIconByType (SND,/icons/sound2.gif) audio/*
  627. AddIconByType (VID,/icons/movie.gif) video/*
  628.  
  629. AddIcon /icons/binary.gif .bin .exe
  630. AddIcon /icons/binhex.gif .hqx
  631. AddIcon /icons/tar.gif .tar
  632. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  633. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  634. AddIcon /icons/a.gif .ps .ai .eps
  635. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  636. AddIcon /icons/text.gif .txt
  637. AddIcon /icons/c.gif .c
  638. AddIcon /icons/p.gif .pl .py
  639. AddIcon /icons/f.gif .for
  640. AddIcon /icons/dvi.gif .dvi
  641. AddIcon /icons/uuencoded.gif .uu
  642. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  643. AddIcon /icons/tex.gif .tex
  644. AddIcon /icons/bomb.gif core
  645.  
  646. AddIcon /icons/back.gif ..
  647. AddIcon /icons/hand.right.gif README
  648. AddIcon /icons/folder.gif ^^DIRECTORY^^
  649. AddIcon /icons/blank.gif ^^BLANKICON^^
  650.  
  651. #
  652. # DefaultIcon is which icon to show for files which do not have an icon
  653. # explicitly set.
  654. #
  655. DefaultIcon /icons/unknown.gif
  656.  
  657. #
  658. # AddDescription allows you to place a short description after a file in
  659. # server-generated indexes. These are only displayed for FancyIndexed
  660. # directories.
  661. # Format: AddDescription "description" filename
  662. #
  663. #AddDescription "GZIP compressed document" .gz
  664. #AddDescription "tar archive" .tar
  665. #AddDescription "GZIP compressed tar archive" .tgz
  666.  
  667. #
  668. # ReadmeName is the name of the README file the server will look for by
  669. # default, and append to directory listings.
  670. #
  671. # HeaderName is the name of a file which should be prepended to
  672. # directory indexes.
  673. ReadmeName README.html
  674. HeaderName HEADER.html
  675.  
  676. #
  677. # IndexIgnore is a set of filenames which directory indexing should ignore
  678. # and not include in the listing. Shell-style wildcarding is permitted.
  679. #
  680. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  681.  
  682. #
  683. # DefaultLanguage and AddLanguage allows you to specify the language of
  684. # a document. You can then use content negotiation to give a browser a
  685. # file in a language the user can understand.
  686. #
  687. # Specify a default language. This means that all data
  688. # going out without a specific language tag (see below) will
  689. # be marked with this one. You probably do NOT want to set
  690. # this unless you are sure it is correct for all cases.
  691. #
  692. # * It is generally better to not mark a page as
  693. # * being a certain language than marking it with the wrong
  694. # * language!
  695. #
  696. # DefaultLanguage nl
  697. #
  698. # Note 1: The suffix does not have to be the same as the language
  699. # keyword --- those with documents in Polish (whose net-standard
  700. # language code is pl) may wish to use "AddLanguage pl .po" to
  701. # avoid the ambiguity with the common suffix for perl scripts.
  702. #
  703. # Note 2: The example entries below illustrate that in some cases
  704. # the two character 'Language' abbreviation is not identical to
  705. # the two character 'Country' code for its country,
  706. # E.g. 'Danmark/dk' versus 'Danish/da'.
  707. #
  708. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  709. # specifier. There is 'work in progress' to fix this and get
  710. # the reference data for rfc1766 cleaned up.
  711. #
  712. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  713. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  714. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  715. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  716. # Norwegian (no) - Polish (pl) - Portugese (pt)
  717. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  718. # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  719. #
  720. AddLanguage ca .ca
  721. AddLanguage cs .cz .cs
  722. AddLanguage da .dk
  723. AddLanguage de .de
  724. AddLanguage el .el
  725. AddLanguage en .en
  726. AddLanguage eo .eo
  727. AddLanguage es .es
  728. AddLanguage et .et
  729. AddLanguage fr .fr
  730. AddLanguage he .he
  731. AddLanguage hr .hr
  732. AddLanguage it .it
  733. AddLanguage ja .ja
  734. AddLanguage ko .ko
  735. AddLanguage ltz .ltz
  736. AddLanguage nl .nl
  737. AddLanguage nn .nn
  738. AddLanguage no .no
  739. AddLanguage pl .po
  740. AddLanguage pt .pt
  741. AddLanguage pt-BR .pt-br
  742. AddLanguage ru .ru
  743. AddLanguage sv .sv
  744. AddLanguage zh-CN .zh-cn
  745. AddLanguage zh-TW .zh-tw
  746.  
  747. #
  748. # LanguagePriority allows you to give precedence to some languages
  749. # in case of a tie during content negotiation.
  750. #
  751. # Just list the languages in decreasing order of preference. We have
  752. # more or less alphabetized them here. You probably want to change this.
  753. #
  754. 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 zh-CN zh-TW
  755.  
  756. #
  757. # ForceLanguagePriority allows you to serve a result page rather than
  758. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  759. # [in case no accepted languages matched the available variants]
  760. #
  761. ForceLanguagePriority Prefer Fallback
  762.  
  763. #
  764. # Specify a default charset for all content served; this enables
  765. # interpretation of all content as UTF-8 by default. To use the
  766. # default browser choice (ISO-8859-1), or to allow the META tags
  767. # in HTML content to override this choice, comment out this
  768. # directive:
  769. #
  770. AddDefaultCharset UTF-8
  771.  
  772. #
  773. # AddType allows you to add to or override the MIME configuration
  774. # file mime.types for specific file types.
  775. #
  776. #AddType application/x-tar .tgz
  777.  
  778. #
  779. # AddEncoding allows you to have certain browsers uncompress
  780. # information on the fly. Note: Not all browsers support this.
  781. # Despite the name similarity, the following Add* directives have nothing
  782. # to do with the FancyIndexing customization directives above.
  783. #
  784. #AddEncoding x-compress .Z
  785. #AddEncoding x-gzip .gz .tgz
  786.  
  787. # If the AddEncoding directives above are commented-out, then you
  788. # probably should define those extensions to indicate media types:
  789. #
  790. AddType application/x-compress .Z
  791. AddType application/x-gzip .gz .tgz
  792.  
  793. #
  794. # MIME-types for downloading Certificates and CRLs
  795. #
  796. AddType application/x-x509-ca-cert .crt
  797. AddType application/x-pkcs7-crl .crl
  798.  
  799. #
  800. # AddHandler allows you to map certain file extensions to "handlers":
  801. # actions unrelated to filetype. These can be either built into the server
  802. # or added with the Action directive (see below)
  803. #
  804. # To use CGI scripts outside of ScriptAliased directories:
  805. # (You will also need to add "ExecCGI" to the "Options" directive.)
  806. #
  807. #AddHandler cgi-script .cgi
  808.  
  809. #
  810. # For files that include their own HTTP headers:
  811. #
  812. #AddHandler send-as-is asis
  813.  
  814. #
  815. # For type maps (negotiated resources):
  816. # (This is enabled by default to allow the Apache "It Worked" page
  817. # to be distributed in multiple languages.)
  818. #
  819. AddHandler type-map var
  820.  
  821. #
  822. # Filters allow you to process content before it is sent to the client.
  823. #
  824. # To parse .shtml files for server-side includes (SSI):
  825. # (You will also need to add "Includes" to the "Options" directive.)
  826. #
  827. AddType text/html .shtml
  828. AddOutputFilter INCLUDES .shtml
  829.  
  830. #
  831. # Action lets you define media types that will execute a script whenever
  832. # a matching file is called. This eliminates the need for repeated URL
  833. # pathnames for oft-used CGI file processors.
  834. # Format: Action media/type /cgi-script/location
  835. # Format: Action handler-name /cgi-script/location
  836. #
  837.  
  838. #
  839. # Customizable error responses come in three flavors:
  840. # 1) plain text 2) local redirects 3) external redirects
  841. #
  842. # Some examples:
  843. #ErrorDocument 500 "The server made a boo boo."
  844. #ErrorDocument 404 /missing.html
  845. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  846. #ErrorDocument 402 http://www.example.com/subscription_info.html
  847. #
  848.  
  849. #
  850. # Putting this all together, we can internationalize error responses.
  851. #
  852. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  853. # our collection of by-error message multi-language collections. We use
  854. # includes to substitute the appropriate text.
  855. #
  856. # You can modify the messages' appearance without changing any of the
  857. # default HTTP_<error>.html.var files by adding the line:
  858. #
  859. # Alias /error/include/ "/your/include/path/"
  860. #
  861. # which allows you to create your own set of files by starting with the
  862. # /var/www/error/include/ files and
  863. # copying them to /your/include/path/, even on a per-VirtualHost basis.
  864. #
  865.  
  866. #Alias /error/ "/var/www/error/"
  867. Alias /error/ "/home/main-domain-a/error/"
  868.  
  869. <IfModule mod_negotiation.c>
  870. <IfModule mod_include.c>
  871. <Directory "/home/main-domain-a/error">
  872. # <Directory "/var/www/error">
  873. AllowOverride None
  874. Options IncludesNoExec
  875. AddOutputFilter Includes html
  876. AddHandler type-map var
  877. Order allow,deny
  878. Allow from all
  879. LanguagePriority en es de fr
  880. ForceLanguagePriority Prefer Fallback
  881. </Directory>
  882.  
  883. # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  884. # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  885. # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  886. # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  887. # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  888. # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  889. # ErrorDocument 410 /error/HTTP_GONE.html.var
  890. # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  891. # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  892. # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  893. # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  894. # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  895. # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  896. # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  897. # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  898. # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  899. # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  900.  
  901. </IfModule>
  902. </IfModule>
  903.  
  904. #
  905. # The following directives modify normal HTTP response behavior to
  906. # handle known problems with browser implementations.
  907. #
  908. BrowserMatch "Mozilla/2" nokeepalive
  909. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  910. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  911. BrowserMatch "Java/1\.0" force-response-1.0
  912. BrowserMatch "JDK/1\.0" force-response-1.0
  913.  
  914. #
  915. # The following directive disables redirects on non-GET requests for
  916. # a directory that does not include the trailing slash. This fixes a
  917. # problem with Microsoft WebFolders which does not appropriately handle
  918. # redirects for folders with DAV methods.
  919. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  920. #
  921. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  922. BrowserMatch "MS FrontPage" redirect-carefully
  923. BrowserMatch "^WebDrive" redirect-carefully
  924. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  925. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  926. BrowserMatch "^XML Spy" redirect-carefully
  927. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  928.  
  929. #
  930. # Allow server status reports generated by mod_status,
  931. # with the URL of http://servername/server-status
  932. # Change the ".example.com" to match your domain to enable.
  933. #
  934. #<Location /server-status>
  935. # SetHandler server-status
  936. # Order deny,allow
  937. # Deny from all
  938. # Allow from .example.com
  939. #</Location>
  940.  
  941. #
  942. # Allow remote server configuration reports, with the URL of
  943. # http://servername/server-info (requires that mod_info.c be loaded).
  944. # Change the ".example.com" to match your domain to enable.
  945. #
  946. #<Location /server-info>
  947. # SetHandler server-info
  948. # Order deny,allow
  949. # Deny from all
  950. # Allow from .example.com
  951. #</Location>
  952.  
  953. #
  954. # Proxy Server directives. Uncomment the following lines to
  955. # enable the proxy server:
  956. #
  957. #<IfModule mod_proxy.c>
  958. #ProxyRequests On
  959. #
  960. #<Proxy *>
  961. # Order deny,allow
  962. # Deny from all
  963. # Allow from .example.com
  964. #</Proxy>
  965.  
  966. #
  967. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  968. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  969. # Set to one of: Off | On | Full | Block
  970. #
  971. #ProxyVia On
  972.  
  973. #
  974. # To enable a cache of proxied content, uncomment the following lines.
  975. # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
  976. #
  977. #<IfModule mod_disk_cache.c>
  978. # CacheEnable disk /
  979. # CacheRoot "/var/cache/mod_proxy"
  980. #</IfModule>
  981. #
  982.  
  983. #</IfModule>
  984. # End of proxy directives.
  985.  
  986. ### Section 3: Virtual Hosts
  987. #
  988. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  989. # machine you can setup VirtualHost containers for them. Most configurations
  990. # use only name-based virtual hosts so the server doesn't need to worry about
  991. # IP addresses. This is indicated by the asterisks in the directives below.
  992. #
  993. # Please see the documentation at
  994. # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
  995. # for further details before you try to setup virtual hosts.
  996. #
  997. # You may use the command line option '-S' to verify your virtual host
  998. # configuration.
  999.  
  1000. #
  1001. # Use name-based virtual hosting.
  1002. #
  1003. #NameVirtualHost *:80
  1004. #
  1005. # NOTE: NameVirtualHost cannot be used without a port specifier
  1006. # (e.g. :80) if mod_ssl is being used, due to the nature of the
  1007. # SSL protocol.
  1008. #
  1009.  
  1010. NameVirtualHost *:80
  1011.  
  1012. #NameVirtualHost *:443
  1013. #NameVirtualHost 192.168.1.35:80
  1014.  
  1015. #
  1016. # VirtualHost example:
  1017. # Almost any Apache directive may go into a VirtualHost container.
  1018. # The first VirtualHost section is used for requests without a known
  1019. # server name.
  1020. #
  1021. #<VirtualHost *:80>
  1022. # ServerAdmin [email protected]
  1023. # DocumentRoot /www/docs/dummy-host.example.com
  1024. # ServerName dummy-host.example.com
  1025. # ErrorLog logs/dummy-host.example.com-error_log
  1026. # CustomLog logs/dummy-host.example.com-access_log common
  1027. #</VirtualHost>
  1028. #<VirtualHost *:80 *:443></VirtualHost>
  1029. <VirtualHost *:80>
  1030. SuexecUserGroup #502 #502
  1031. ServerName main-domain-a.com
  1032. ServerAlias www.main-domain-a.com
  1033. ServerAlias webmail.main-domain-a.com
  1034. ServerAlias admin.main-domain-a.com
  1035. DocumentRoot /home/main-domain-a/public_html
  1036. ErrorLog /var/log/virtualmin/main-domain-a.com_error_log
  1037. CustomLog /var/log/virtualmin/main-domain-a.com_access_log combined
  1038. ScriptAlias /cgi-bin/ /home/main-domain-a/cgi-bin/
  1039. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  1040. <Directory /home/main-domain-a/public_html>
  1041. Options -Indexes +IncludesNOEXEC +FollowSymLinks
  1042. allow from all
  1043. AllowOverride All
  1044. </Directory>
  1045. <Directory /home/main-domain-a/cgi-bin>
  1046. allow from all
  1047. </Directory>
  1048. RewriteEngine on
  1049. RewriteCond %{HTTP_HOST} =webmail.main-domain-a.com
  1050. RewriteRule ^(.*) https://main-domain-a.com:20000/ [R]
  1051. RewriteCond %{HTTP_HOST} =admin.main-domain-a.com
  1052. RewriteRule ^(.*) https://main-domain-a.com:10000/ [R]
  1053. php_value memory_limit 32M
  1054. </VirtualHost>
  1055. <VirtualHost *:80>
  1056. SuexecUserGroup #534 #503
  1057. ServerName domain-b.com
  1058. ServerAlias www.domain-b.com
  1059. ServerAlias webmail.domain-b.com
  1060. ServerAlias admin.domain-b.com
  1061. DocumentRoot /home/domain-b/public_html
  1062. ErrorLog /var/log/virtualmin/domain-b.com_error_log
  1063. CustomLog /var/log/virtualmin/domain-b.com_access_log combined
  1064. ScriptAlias /cgi-bin/ /home/domain-b/cgi-bin/
  1065. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  1066. <Directory /home/domain-b/public_html>
  1067. Options -Indexes +IncludesNOEXEC +FollowSymLinks
  1068. allow from all
  1069. AllowOverride All
  1070. </Directory>
  1071. <Directory /home/domain-b/cgi-bin>
  1072. allow from all
  1073. </Directory>
  1074. RewriteEngine on
  1075. RewriteCond %{HTTP_HOST} =webmail.domain-b.com
  1076. RewriteRule ^(.*) https://domain-b.com:20000/ [R]
  1077. RewriteCond %{HTTP_HOST} =admin.domain-b.com
  1078. RewriteRule ^(.*) https://domain-b.com:10000/ [R]
  1079. </VirtualHost>
  1080. <VirtualHost *:80>
  1081. SuexecUserGroup "#553" "#504"
  1082. ServerName domain-c.com
  1083. ServerAlias www.domain-c.com
  1084. ServerAlias webmail.domain-c.com
  1085. ServerAlias admin.domain-c.com
  1086. DocumentRoot /home/domain-c/public_html
  1087. ErrorLog /var/log/virtualmin/domain-c.com_error_log
  1088. CustomLog /var/log/virtualmin/domain-c.com_access_log combined
  1089. ScriptAlias /cgi-bin/ /home/domain-c/cgi-bin/
  1090. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  1091. <Directory /home/domain-c/public_html>
  1092. Options -Indexes +IncludesNOEXEC +FollowSymLinks
  1093. allow from all
  1094. AllowOverride All
  1095. </Directory>
  1096. <Directory /home/domain-c/cgi-bin>
  1097. allow from all
  1098. </Directory>
  1099. RewriteEngine on
  1100. RewriteCond %{HTTP_HOST} =webmail.domain-c.com
  1101. RewriteRule ^(.*) https://domain-c.com:20000/ [R]
  1102. RewriteCond %{HTTP_HOST} =admin.domain-c.com
  1103. RewriteRule ^(.*) https://domain-c.com:10000/ [R]
  1104. </VirtualHost>
  1105. <VirtualHost *:80>
  1106. SuexecUserGroup "#555" "#505"
  1107. ServerName domain-d.com
  1108. ServerAlias www.domain-d.com
  1109. ServerAlias webmail.domain-d.com
  1110. ServerAlias admin.domain-d.com
  1111. DocumentRoot /home/domain-d/public_html
  1112. ErrorLog /var/log/virtualmin/domain-d.com_error_log
  1113. CustomLog /var/log/virtualmin/domain-d.com_access_log combined
  1114. ScriptAlias /cgi-bin/ /home/domain-d/cgi-bin/
  1115. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  1116. <Directory /home/domain-d/public_html>
  1117. Options -Indexes +IncludesNOEXEC +FollowSymLinks
  1118. allow from all
  1119. AllowOverride All
  1120. </Directory>
  1121. <Directory /home/domain-d/cgi-bin>
  1122. allow from all
  1123. </Directory>
  1124. RewriteEngine on
  1125. RewriteCond %{HTTP_HOST} =webmail.domain-d.com
  1126. RewriteRule ^(.*) https://domain-d.com:20000/ [R]
  1127. RewriteCond %{HTTP_HOST} =admin.domain-d.com
  1128. RewriteRule ^(.*) https://domain-d.com:10000/ [R]
  1129. </VirtualHost>
  1130. <VirtualHost *:80>
  1131. SuexecUserGroup "#563" "#506"
  1132. ServerName domain-e.com
  1133. ServerAlias www.domain-e.com
  1134. ServerAlias webmail.domain-e.com
  1135. ServerAlias admin.domain-e.com
  1136. DocumentRoot /home/domain-e/public_html
  1137. ErrorLog /var/log/virtualmin/domain-e.com_error_log
  1138. CustomLog /var/log/virtualmin/domain-e.com_access_log combined
  1139. ScriptAlias /cgi-bin/ /home/domain-e/cgi-bin/
  1140. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  1141. <Directory /home/domain-e/public_html>
  1142. Options -Indexes +IncludesNOEXEC +FollowSymLinks
  1143. allow from all
  1144. AllowOverride All
  1145. </Directory>
  1146. <Directory /home/domain-e/cgi-bin>
  1147. allow from all
  1148. </Directory>
  1149. RewriteEngine on
  1150. RewriteCond %{HTTP_HOST} =webmail.domain-e.com
  1151. RewriteRule ^(.*) https://domain-e.com:20000/ [R]
  1152. RewriteCond %{HTTP_HOST} =admin.domain-e.com
  1153. RewriteRule ^(.*) https://domain-e.com:10000/ [R]
  1154. </VirtualHost>
  1155. <VirtualHost *:80>
  1156. SuexecUserGroup "#570" "#507"
  1157. ServerName domain-f.us
  1158. ServerAlias www.domain-f.us
  1159. ServerAlias webmail.domain-f.us
  1160. ServerAlias admin.domain-f.us
  1161. DocumentRoot /home/domain-f/public_html
  1162. ErrorLog /var/log/virtualmin/domain-f.us_error_log
  1163. CustomLog /var/log/virtualmin/domain-f.us_access_log combined
  1164. ScriptAlias /cgi-bin/ /home/domain-f/cgi-bin/
  1165. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  1166. <Directory /home/domain-f/public_html>
  1167. Options -Indexes +IncludesNOEXEC +FollowSymLinks
  1168. allow from all
  1169. AllowOverride All
  1170. </Directory>
  1171. <Directory /home/domain-f/cgi-bin>
  1172. allow from all
  1173. </Directory>
  1174. RewriteEngine on
  1175. RewriteCond %{HTTP_HOST} =webmail.domain-f.us
  1176. RewriteRule ^(.*) https://domain-f.us:20000/ [R]
  1177. RewriteCond %{HTTP_HOST} =admin.domain-f.us
  1178. RewriteRule ^(.*) https://domain-f.us:10000/ [R]
  1179. </VirtualHost>
  1180. <VirtualHost *:80>
  1181. SuexecUserGroup "#604" "#531"
  1182. ServerName domain-g.com
  1183. ServerAlias www.domain-g.com
  1184. ServerAlias webmail.domain-g.com
  1185. ServerAlias admin.domain-g.com
  1186. DocumentRoot /home/domain-g/public_html
  1187. ErrorLog /var/log/virtualmin/domain-g.com_error_log
  1188. CustomLog /var/log/virtualmin/domain-g.com_access_log combined
  1189. ScriptAlias /cgi-bin/ /home/domain-g/cgi-bin/
  1190. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  1191. <Directory /home/domain-g/public_html>
  1192. Options -Indexes +IncludesNOEXEC +FollowSymLinks
  1193. allow from all
  1194. AllowOverride All
  1195. </Directory>
  1196. <Directory /home/domain-g/cgi-bin>
  1197. allow from all
  1198. </Directory>
  1199. RewriteEngine on
  1200. RewriteCond %{HTTP_HOST} =webmail.domain-g.com
  1201. RewriteRule ^(.*) https://domain-g.com:20000/ [R]
  1202. RewriteCond %{HTTP_HOST} =admin.domain-g.com
  1203. RewriteRule ^(.*) https://domain-g.com:10000/ [R]
  1204. </VirtualHost>
  1205.  
Advertisement
Add Comment
Please, Sign In to add comment