Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This paste contains 4 files:
- 1.) /etc/apache2/apache2.conf,
- 2.) /etc/apache2/sites-available/000-default.conf
- 3.) /etc/apache2/conf-available/aliases.conf
- 4.) /var/www/index.html
- ############################################################################
- File: /etc/apache2/apache2.conf,
- ############################################################################
- # Global configuration
- #
- ServerRoot "/etc/apache2"
- DefaultRuntimeDir ${APACHE_RUN_DIR}
- PidFile ${APACHE_PID_FILE}
- Timeout 300
- KeepAlive On
- MaxKeepAliveRequests 100
- KeepAliveTimeout 5
- User ${APACHE_RUN_USER}
- Group ${APACHE_RUN_GROUP}
- HostnameLookups Off
- ErrorLog ${APACHE_LOG_DIR}/error.log
- LogLevel warn
- IncludeOptional mods-enabled/*.load
- IncludeOptional mods-enabled/*.conf
- Include ports.conf
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- Require all denied
- </Directory>
- <Directory /usr/share>
- AllowOverride None
- Require all granted
- </Directory>
- <Directory /var/www/>
- Options Indexes FollowSymLinks
- AllowOverride None
- Require all granted
- </Directory>
- <Directory /3T/Suncs/>
- # Enable the secondary HD via fstab def of "3T"!
- Options Indexes FollowSymLinks
- AllowOverride None
- Require all granted
- </Directory>
- <Directory /3T/Suncs/Projects/Webs/>
- Options Indexes FollowSymLinks
- AllowOverride None
- Require all granted
- </Directory>
- AccessFileName .htaccess
- <FilesMatch "^\.ht">
- Require all denied
- </FilesMatch>
- LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
- LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
- LogFormat "%h %l %u %t \"%r\" %>s %O" common
- LogFormat "%{Referer}i -> %U" referer
- LogFormat "%{User-agent}i" agent
- IncludeOptional conf-enabled/*.conf
- IncludeOptional sites-enabled/*.conf
- ############################################################################
- File: /etc/apache2/sites-available/000-default.conf
- ############################################################################
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- DocumentRoot /3T/Syncs/Projects/Web/
- <Directory/>
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- <Directory /3T/Syncs/Projects/Web/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride None
- Order allow,deny
- allow from all
- </Directory>
- ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
- <Directory "/usr/lib/cgi-bin">
- AllowOverride None
- Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
- Order allow,deny
- Allow from all
- </Directory>
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- Alias /doc/ "/usr/share/doc/"
- <Directory "/usr/share/doc/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride None
- Order deny,allow
- Deny from all
- Allow from 127.0.0.0/255.0.0.0 ::1/128
- </Directory>
- </VirtualHost>
- ############################################################################
- File: /etc/apache2/conf-available/aliases.conf
- ############################################################################
- # Latest Alias file 20/11/05
- Alias "/ads" "/3T/Syncs/Corporate/Marketing/Ad Campaigns/"
- <Directory "/3T/Syncs/Corporate/Marketing/Ad Campaigns/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/CLA" "/3T/Syncs/Corporate/Marketing/Ad Campaigns/CL/"
- <Directory "/3T/Syncs/Corporate/Marketing/Ad Campaigns/CL/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/dbox" "/3T/files/Dropbox/"
- <Directory "/3T/files/Dropbox/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/files" "/3T/files/"
- <Directory "/3T/files/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/job-ads" "/3T/Syncs/Marketing/Ad Campaigns/Job_ADs/"
- <Directory "/3T/Syncs/Marketing/Ad Campaigns/Job_ADs/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/ministry" "/3T/files/Dropbox/@Ministry/"
- <Directory "/3T/files/Dropbox/@Ministry/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/myfiles" "/home/myfiles/"
- <Directory "/home/myfiles/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/projects" "/3T/Syncs/Projects/"
- <Directory "/3T/Syncs/Projects/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/resumes" "/3T/Syncs/Resumes/"
- <Directory "/3T/Syncs/Resumes/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/SEO" "/3T/Syncs/Projects/seo-testing/"
- <Directory "/3T/Syncs/Projects/seo-testing/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/TopicC" "/3T/Syncs/Projects/Topical Chain Reference/"
- <Directory "/3T/Syncs/Projects/Topical Chain Reference/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/tripod" "/3T/Syncs/Resumes/Job Search/Tripod Files/"
- <Directory "/3T/Syncs/Resumes/Job Search/Tripod Files/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/pear" "/usr/share/php/htdocs/"
- <Directory "/usr/share/php/htdocs/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/phpmyadmin" "/usr/share/phpmyadmin/"
- <Directory "/usr/share/phpmyadmin/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/Symfony" "/var/www/Frameworks/Symfony/"
- <Directory "/var/www/Frameworks/Symfony/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Alias "/WRU" "/3T/Syncs/Corporate/Companies & Holdings/AEC_FamilyCs/Webs-R-Us/"
- <Directory "/3T/Syncs/Corporate/Companies & Holdings/AEC_FamilyCs/Webs-R-Us/>
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- ############################################################################
- File: /var/www/index.html
- ############################################################################
- # NOTE: This file is modified from the original to contain linke to all the
- # aliases defined to allow click access to all aliases.
- ############################################################################
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <!--
- Modified from the Debian original for Ubuntu
- Last updated: 2014-03-19
- See: https://launchpad.net/bugs/1288690
- -->
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>Apache2 Ubuntu Default Page: It works</title>
- <style type="text/css" media="screen">
- * {
- margin: 0px 0px 0px 0px;
- padding: 0px 0px 0px 0px;
- }
- body, html {
- padding: 3px 3px 3px 3px;
- background-color: #D8DBE2;
- font-family: Verdana, sans-serif;
- font-size: 11pt;
- text-align: center;
- }
- div.main_page {
- position: relative;
- display: table;
- width: 800px;
- margin-bottom: 3px;
- margin-left: auto;
- margin-right: auto;
- padding: 0px 0px 0px 0px;
- border-width: 2px;
- border-color: #212738;
- border-style: solid;
- background-color: #FFFFFF;
- text-align: center;
- }
- div.page_header {
- height: 99px;
- width: 100%;
- background-color: #F5F6F7;
- }
- div.page_header span {
- margin: 15px 0px 0px 50px;
- font-size: 180%;
- font-weight: bold;
- }
- div.page_header img {
- margin: 3px 0px 0px 40px;
- border: 0px 0px 0px;
- }
- div.table_of_contents {
- clear: left;
- min-width: 200px;
- margin: 3px 3px 3px 3px;
- background-color: #FFFFFF;
- text-align: left;
- }
- div.table_of_contents_item {
- clear: left;
- width: 100%;
- margin: 4px 0px 0px 0px;
- background-color: #FFFFFF;
- color: #000000;
- text-align: left;
- }
- div.table_of_contents_item a {
- margin: 6px 0px 0px 6px;
- }
- div.content_section {
- margin: 3px 3px 3px 3px;
- background-color: #FFFFFF;
- text-align: left;
- }
- div.content_section_text {
- padding: 4px 8px 4px 8px;
- color: #000000;
- font-size: 100%;
- }
- div.content_section_text pre {
- margin: 8px 0px 8px 0px;
- padding: 8px 8px 8px 8px;
- border-width: 1px;
- border-style: dotted;
- border-color: #000000;
- background-color: #F5F6F7;
- font-style: italic;
- }
- div.content_section_text p {
- margin-bottom: 6px;
- }
- div.content_section_text ul, div.content_section_text li {
- padding: 4px 8px 4px 16px;
- }
- div.section_header {
- padding: 3px 6px 3px 6px;
- background-color: #8E9CB2;
- color: #FFFFFF;
- font-weight: bold;
- font-size: 112%;
- text-align: center;
- }
- div.section_header_red {
- background-color: #CD214F;
- }
- div.section_header_grey {
- background-color: #9F9386;
- }
- .floating_element {
- position: relative;
- float: left;
- }
- div.table_of_contents_item a,
- div.content_section_text a {
- text-decoration: none;
- font-weight: bold;
- }
- div.table_of_contents_item a:link,
- div.table_of_contents_item a:visited,
- div.table_of_contents_item a:active {
- color: #000000;
- }
- div.table_of_contents_item a:hover {
- background-color: #000000;
- color: #FFFFFF;
- }
- div.content_section_text a:link,
- div.content_section_text a:visited,
- div.content_section_text a:active {
- background-color: #DCDFE6;
- color: #000000;
- }
- div.content_section_text a:hover {
- background-color: #000000;
- color: #DCDFE6;
- }
- div.validator {
- }
- </style>
- </head>
- <body>
- <div class="main_page">
- <div class="page_header floating_element">
- <img src="/icons/ubuntu-logo.png" alt="Ubuntu Logo" class="floating_element"/>
- <span class="floating_element">
- Apache2 Ubuntu Default Page
- </span>
- </div>
- <!-- <div class="table_of_contents floating_element">
- <div class="section_header section_header_grey">
- TABLE OF CONTENTS
- </div>
- <div class="table_of_contents_item floating_element">
- <a href="#about">About</a>
- </div>
- <div class="table_of_contents_item floating_element">
- <a href="#changes">Changes</a>
- </div>
- <div class="table_of_contents_item floating_element">
- <a href="#scope">Scope</a>
- </div>
- <div class="table_of_contents_item floating_element">
- <a href="#files">Config files</a>
- </div>
- </div>
- -->
- <div class="content_section floating_element">
- <div class="section_header section_header_red">
- <div id="about"></div>
- It works!
- </div>
- <div class="content_section_text">
- <p>
- This is the default welcome page used to test the correct
- operation of the Apache2 server after installation on Ubuntu systems.
- It is based on the equivalent page on Debian, from which the Ubuntu Apache
- packaging is derived.
- If you can read this page, it means that the Apache HTTP server installed at
- this site is working properly. You should <b>replace this file</b> (located at
- <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.
- </p>
- <p>
- If you are a normal user of this web site and don't know what this page is
- about, this probably means that the site is currently unavailable due to
- maintenance.
- If the problem persists, please contact the site's administrator.
- </p>
- </div>
- <div class="section_header">
- <div id="changes"></div>
- Configuration Overview
- </div>
- <div class="content_section_text">
- <p>
- Ubuntu's Apache2 default configuration is different from the
- upstream default configuration, and split into several files optimized for
- interaction with Ubuntu tools. The configuration system is
- <b>fully documented in
- /usr/share/doc/apache2/README.Debian.gz</b>. Refer to this for the full
- documentation. Documentation for the web server itself can be
- found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>
- package was installed on this server.
- </p>
- <p>
- The configuration layout for an Apache2 web server installation on Ubuntu systems is as follows:
- </p>
- <pre>
- /etc/apache2/
- |-- apache2.conf
- | `-- ports.conf
- |-- mods-enabled
- | |-- *.load
- | `-- *.conf
- |-- conf-enabled
- | `-- *.conf
- |-- sites-enabled
- | `-- *.conf
- </pre>
- <ul>
- <li>
- <tt>apache2.conf</tt> is the main configuration
- file. It puts the pieces together by including all remaining configuration
- files when starting up the web server.
- </li>
- <li>
- <tt>ports.conf</tt> is always included from the
- main configuration file. It is used to determine the listening ports for
- incoming connections, and this file can be customized anytime.
- </li>
- <li>
- Configuration files in the <tt>mods-enabled/</tt>,
- <tt>conf-enabled/</tt> and <tt>sites-enabled/</tt> directories contain
- particular configuration snippets which manage modules, global configuration
- fragments, or virtual host configurations, respectively.
- </li>
- <li>
- They are activated by symlinking available
- configuration files from their respective
- *-available/ counterparts. These should be managed
- by using our helpers
- <tt>
- <a href="http://manpages.debian.org/cgi-bin/man.cgi?query=a2enmod">a2enmod</a>,
- <a href="http://manpages.debian.org/cgi-bin/man.cgi?query=a2dismod">a2dismod</a>,
- </tt>
- <tt>
- <a href="http://manpages.debian.org/cgi-bin/man.cgi?query=a2ensite">a2ensite</a>,
- <a href="http://manpages.debian.org/cgi-bin/man.cgi?query=a2dissite">a2dissite</a>,
- </tt>
- and
- <tt>
- <a href="http://manpages.debian.org/cgi-bin/man.cgi?query=a2enconf">a2enconf</a>,
- <a href="http://manpages.debian.org/cgi-bin/man.cgi?query=a2disconf">a2disconf</a>
- </tt>. See their respective man pages for detailed information.
- </li>
- <li>
- The binary is called apache2. Due to the use of
- environment variables, in the default configuration, apache2 needs to be
- started/stopped with <tt>/etc/init.d/apache2</tt> or <tt>apache2ctl</tt>.
- <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the
- default configuration.
- </li>
- </ul>
- </div>
- <div class="section_header">
- <div id="docroot"></div>
- Document Roots
- </div>
- <div class="content_section_text">
- <p>
- By default, Ubuntu does not allow access through the web browser to
- <em>any</em> file apart of those located in <tt>/var/www</tt>,
- <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html">public_html</a>
- directories (when enabled) and <tt>/usr/share</tt> (for web
- applications). If your site is using a web document root
- located elsewhere (such as in <tt>/srv</tt>) you may need to whitelist your
- document root directory in <tt>/etc/apache2/apache2.conf</tt>.
- </p>
- <p>
- The default Ubuntu document root is <tt>/var/www/html</tt>. You
- can make your own virtual hosts under /var/www. This is different
- to previous releases which provides better security out of the box.
- </p>
- </div>
- <div class="section_header">
- <div id="alias"></div>
- Aliases
- </div>
- <div class="content_section_text">
- <p>
- This Apache2 configuration inclues aliases assignments for:
- </p>
- <center>
- <table width='85%' align='center' border='0'>
- <tr>
- <td width='20%'><b>Alias</b></td><td width='5%'> </td><td><b>Link</b></td>
- </tr>
- <tr>
- <td><b>ADS</b></td><td>=></td><td><a href="http://localhost/ads">localhost/ads</a></td>
- </tr>
- <tr>
- <td><b>CL-ADs</b></td><td>=></td><td><a href="http://localhost/CLA">localhost/CLA</a></td>
- </tr>
- <tr>
- <td><b>DBOX</b></td><td>=></td><td><a href="http://localhost/dbox">localhost/dbox</a></td>
- </tr>
- <tr>
- <td><b>Files</b></td><td>=></td><td><a href="http://localhost/files">localhost/files</a></td>
- </tr>
- <tr>
- <td><b>Job-Ads</b></td><td>=></td><td><a href="http://localhost/job-ads">localhost/job-ads</a></td>
- </tr>
- <tr>
- <td><b>Ministry</b></td><td>=></td><td><a href="http://localhost/ministry">localhost/ministry</a></td>
- </tr>
- <tr>
- <td><b>Manuals</b></td><td>=></td><td><a href="http://localhost/Manuals">localhost/Manuals</a></td>
- </tr>
- <tr>
- <td><b>MyStuff</b></td><td>=></td><td><a href="http://localhost/MyStuff">localhost/MyStuff</a></td>
- </tr>
- <tr>
- <td><b>Pear</b></td><td>=></td><td><a href="http://localhost/pear">localhost/pear</a></td>
- </tr>
- <tr>
- <td><b>PHPmyAdmin</b></td><td>=></td><td><a href="http://localhost/phpmyadmin">localhost/phpmyadmin</a></td>
- </tr>
- <tr>
- <td><b>Projects</b></td><td>=></td><td><a href="http://localhost/projects">localhost/projects</a></td>
- </tr>
- <tr>
- <td><b>Resumes</b></td><td>=></td><td><a href="http://localhost/resumes">localhost/resumes</a></td>
- </tr>
- <tr>
- <td><b>SEO</b></td><td>=></td><td><a href="http://localhost/SEO">localhost/SEO</a></td>
- </tr>
- <tr>
- <td><b>SEO_Panel</b></td><td>=></td><td><a href="http://localhost/SEO_Panel">localhost/SEO_Panel</a></td>
- </tr>
- <tr>
- <td><b>Symfony</b></td><td>=></td><td><a href="http://localhost/Symfony">localhost/Symfony</a></td>
- </tr>
- <tr>
- <td><b>TopicC</b></td><td>=></td><td><a href="http://localhost/TopicC">localhost/TopicC</a></td>
- </tr>
- <tr>
- <td><b>Tripod</b></td><td>=></td><td><a href="http://localhost/tripod">localhost/tripod</a></td>
- </tr>
- <tr>
- <td><b>WRU</b></td><td>=></td><td><a href="http://localhost/WRU">localhost/WRU</a></td>
- </tr>
- </table>
- </center>
- </div>
- <div class="section_header">
- <div id="bugs"></div>
- Reporting Problems
- </div>
- <div class="content_section_text">
- <p>
- Please use the <tt>ubuntu-bug</tt> tool to report bugs in the
- Apache2 package with Ubuntu. However, check <a
- href="https://bugs.launchpad.net/ubuntu/+source/apache2">existing
- bug reports</a> before reporting a new bug.
- </p>
- <p>
- Please report bugs specific to modules (such as PHP and others)
- to respective packages, not to the web server itself.
- </p>
- </div>
- </div>
- </div>
- <div class="validator">
- <p>
- <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
- </p>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment