Skip to content

Instantly share code, notes, and snippets.

@MorkHub
Last active April 15, 2017 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MorkHub/3af4ab89b3277306f44633ad8904c29d to your computer and use it in GitHub Desktop.
Save MorkHub/3af4ab89b3277306f44633ad8904c29d to your computer and use it in GitHub Desktop.
Default page
mark@ubuntu ~ $ apachectl -t -D DUMP_VHOSTS
VirtualHost configuration:
*:443 is a NameVirtualHost
default server none (/etc/apache2/sites-enabled/000-default-ssl.conf:2)
port 443 namevhost none (/etc/apache2/sites-enabled/000-default-ssl.conf:2)
port 443 namevhost themork.co.uk (/etc/apache2/sites-enabled/themork.co.uk-ssl.conf:1)
alias www.themork.co.uk
*:80 is a NameVirtualHost
default server none (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost none (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost themork.co.uk (/etc/apache2/sites-enabled/themork.co.uk.conf:1)
alias www.themork.co.uk
<VirtualHost *:80>
ServerName none
DocumentRoot /var/www/default
<Directory "/">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</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
</VirtualHost>
<pre>Hello, <?php echo ucwords(gethostbyaddr($_SERVER['REMOTE_ADDR'])) ?>, I am <?php echo ucwords(gethostname()) ?>.</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment