-
Notifications
You must be signed in to change notification settings - Fork 0
/
ec2-config.txt
32 lines (29 loc) · 959 Bytes
/
ec2-config.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$ cat /etc/httpd/conf.d/vhost.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/glo-2
ServerName glo.id.au
ErrorLog /var/www/logs/glo.id.au-error_log
CustomLog /var/www/logs/glo.id.au-access_log common
ErrorDocument 404 /404.html
ErrorDocument 500 /50x.html
ErrorDocument 502 /50x.html
ErrorDocument 503 /50x.html
ErrorDocument 504 /50x.html
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/glo-2-stage/dist
ServerName stage.glo.id.au
ErrorLog /var/www/logs/stage.glo.id.au-error_log
CustomLog /var/www/logs/stage.glo.id.au-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/glo-legacy
ServerName legacy.glo.id.au
ErrorLog /var/www/logs/legacy.glo.id.au-error_log
CustomLog /var/www/logs/legacy.glo.id.au-access_log common
ErrorDocument 404 /404.html
</VirtualHost>
$ sudo service httpd restart