Skip to content

Instantly share code, notes, and snippets.

@fenix011
Created June 5, 2014 15:35
Show Gist options
  • Save fenix011/7d93f1708f77ca24eb98 to your computer and use it in GitHub Desktop.
Save fenix011/7d93f1708f77ca24eb98 to your computer and use it in GitHub Desktop.
+ tierraviva.tv + 173.246.104.255 : public access to VPS via a) it's domain name + b) 'default/0 Virtualhost onto the IP address ?!
# default virtualhost -> gives correspondant 000-default file on /sites-enabled when 'a2ensite default'
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /srv/datadisk01/admin/www/silvia
ServerName blablabla
# do i really need a ServerName :-/ ?
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /srv/datadisk01/admin/www/silvia>
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>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
NameVirtualHost 173.246.104.255:80
<VirtualHost 173.246.104.255:80>
ServerAdmin jla@localhost
DocumentRoot /srv/datadisk01/admin/www/tierraviva/
ServerName tierraviva.tv
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /srv/datadisk01/admin/www/tierraviva/>
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>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment