Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@server:/etc/apache2/conf.d# cat virtual.conf
- NameVirtualHost *:80
- <VirtualHost *:80>
- DocumentRoot /var/www/www.forgym.tk/
- ServerName www.forgym.tk
- ServerAlias forgym.tk *.forgym.tk
- </VirtualHost>
- <VirtualHost *:80>
- DocumentRoot /var/www/www.somgeodet.tk/
- ServerName www.somgeodet.tk
- ServerAlias somgeodet.tk *.somgeodet.tk
- </VirtualHost>
- root@server:/etc/apache2# cat httpd.conf
- NameVirtualHost *:80
- <VirtualHost *:80>
- ServerName www.forgym.tk
- ServerAlias forgym.tk *.forgym.tk
- DocumentRoot /var/www/www.forgym.tk
- </VirtualHost>
- <VirtualHost *:80>
- ServerName www.somgeodet.tk
- ServerAlias somgeodet.tk *.somgeodet.tk
- DocumentRoot /var/www/www.somgeodet.tk
- </VirtualHost>
- root@server:/etc/apache2/sites-available# cat www.forgym.tk
- ServerAdmin email@example.com
- ServerName www.forgym.tk
- DocumentRoot /var/www/www.forgym.tk
- ErrorLog /var/logs/www.forgym.tk/logs/error.log
- CustomLog /var/logs/www.forgym.tk/logs/access.log combined
- root@server:/etc/apache2/sites-available# cat www.somgeodet.tk
- ServerAdmin info@somgeodet.tk
- ServerName www.somgeodet.tk
- DocumentRoot /var/www/www.somgeodet.tk
- ErrorLog /var/logs/www.somgeodet.tk/error.log
- CustomLog /var/logs/www.somgeodet.tk/access.log combined
- root@server:/etc/apache2/sites-enabled# cat www.forgym.tk
- ServerAdmin email@example.com
- ServerName www.forgym.tk
- DocumentRoot /var/www/www.forgym.tk
- ErrorLog /var/logs/www.forgym.tk/logs/error.log
- CustomLog /var/logs/www.forgym.tk/logs/access.log combined
- root@server:/etc/apache2/sites-enabled# cat www.somgeodet.tk
- ServerAdmin info@somgeodet.tk
- ServerName www.somgeodet.tk
- DocumentRoot /var/www/www.somgeodet.tk
- ErrorLog /var/logs/www.somgeodet.tk/error.log
- CustomLog /var/logs/www.somgeodet.tk/access.log combined
- root@server:/etc# cat hosts
- 127.0.0.1 localhost
- 127.0.1.1 server.provider.sk server
- 127.0.0.1 forgym.tk.localhost
- 127.0.0.1 somgeodet.tk.localhost
- 127.0.0.1 somgeodet.tk
- 127.0.0.1 forgym.tk
- # The following lines are desirable for IPv6 capable hosts
- ::1 ip6-localhost ip6-loopback
- fe00::0 ip6-localnet
- ff00::0 ip6-mcastprefix
- ff02::1 ip6-allnodes
- ff02::2 ip6-allrouters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement