Advertisement
Guest User

XX.org.conf

a guest
Oct 30th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.43 KB | None | 0 0
  1. #
  2. # VirtualHost template
  3. # Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf.
  4. # Files must have the .conf suffix to be loaded.
  5. #
  6. # See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints
  7. # about virtual hosts.
  8. #
  9. # NameVirtualHost statements can be added to /etc/apache2/listen.conf.
  10. #
  11. # Almost any Apache directive may go into a VirtualHost container.
  12. # The first VirtualHost section is used for requests without a known
  13. # server name.
  14. #
  15. <VirtualHost *:80>
  16.     ServerAdmin XXX@XXX.org
  17.     ServerName XXX.org
  18.  
  19.     # DocumentRoot: The directory out of which you will serve your
  20.     # documents. By default, all requests are taken from this directory, but
  21.     # symbolic links and aliases may be used to point to other locations.
  22.     DocumentRoot /srv/www/XXX/htdocs
  23.  
  24.     # if not specified, the global error log is used
  25.     ErrorLog /var/log/apache2/XXX.org-error_log
  26.     CustomLog /var/log/apache2/XXX.org-access_log combined
  27.  
  28.     # don't loose time with IP address lookups
  29.     HostnameLookups Off
  30.  
  31.     # needed for named virtual hosts
  32.     UseCanonicalName Off
  33.  
  34.     # configures the footer on server-generated documents
  35.     ServerSignature On
  36.  
  37.  
  38.     # Optionally, include *.conf files from /etc/apache2/conf.d/
  39.     #
  40.     # For example, to allow execution of PHP scripts:
  41.     #
  42.     # Include /etc/apache2/conf.d/php5.conf
  43.     #
  44.     # or, to include all configuration snippets added by packages:
  45.     # Include /etc/apache2/conf.d/*.conf
  46.  
  47.  
  48.     # ScriptAlias: This controls which directories contain server scripts.
  49.     # ScriptAliases are essentially the same as Aliases, except that
  50.     # documents in the realname directory are treated as applications and
  51.     # run by the server when requested rather than as documents sent to the client.
  52.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  53.     # Alias.
  54.     #
  55.     ScriptAlias /cgi-bin/ "/srv/www/XXX/cgi-bin/"
  56.  
  57.  
  58.     # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
  59.     # CGI directory exists, if you have one, and where ScriptAlias points to.
  60.     #
  61.     <Directory "/srv/www/XXX/cgi-bin">
  62.         AllowOverride None
  63.         Options +ExecCGI -Includes
  64.         Order allow,deny
  65.         Allow from all
  66.     </Directory>
  67.  
  68.  
  69.     # UserDir: The name of the directory that is appended onto a user's home
  70.     # directory if a ~user request is received.
  71.     #
  72.     # To disable it, simply remove userdir from the list of modules in APACHE_MODULES
  73.     # in /etc/sysconfig/apache2.
  74.     #
  75.     <IfModule mod_userdir.c>
  76.         # Note that the name of the user directory ("public_html") cannot simply be
  77.         # changed here, since it is a compile time setting. The apache package
  78.         # would have to be rebuilt. You could work around by deleting
  79.         # /usr/sbin/suexec, but then all scripts from the directories would be
  80.         # executed with the UID of the webserver.
  81.         UserDir public_html
  82.         # The actual configuration of the directory is in
  83.         # /etc/apache2/mod_userdir.conf.
  84.         Include /etc/apache2/mod_userdir.conf
  85.         # You can, however, change the ~ if you find it awkward, by mapping e.g.
  86.         # http://www.example.com/users/karl-heinz/ --> /home/karl-heinz/public_html/
  87.         #AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
  88.     </IfModule>
  89.  
  90.  
  91.     #
  92.     # This should be changed to whatever you set DocumentRoot to.
  93.     #
  94.     <Directory "/srv/www/XXX/htdocs">
  95.  
  96.         #
  97.         # Possible values for the Options directive are "None", "All",
  98.         # or any combination of:
  99.         #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  100.         #
  101.         # Note that "MultiViews" must be named *explicitly* --- "Options All"
  102.         # doesn't give it to you.
  103.         #
  104.         # The Options directive is both complicated and important.  Please see
  105.         # http://httpd.apache.org/docs-2.2/mod/core.html#options
  106.         # for more information.
  107.         #
  108.         #Options Indexes FollowSymLinks
  109.  
  110.         #
  111.         # AllowOverride controls what directives may be placed in .htaccess files.
  112.         # It can be "All", "None", or any combination of the keywords:
  113.         #   Options FileInfo AuthConfig Limit
  114.         #
  115.         #AllowOverride None
  116.  
  117.         #
  118.         # Controls who can get stuff from this server.
  119.         #
  120.         Order allow,deny
  121.         Allow from all
  122.  
  123.     </Directory>
  124.  
  125. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement