Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:configure_a_virtual_host [2018/04/07 23:02] billdozor [Virtual Host Creation] |
linux_wiki:configure_a_virtual_host [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 12: | Line 12: | ||
* server1.example.com (192.168.1.150) -> Perform all connectivity tests from here | * server1.example.com (192.168.1.150) -> Perform all connectivity tests from here | ||
* server2.example.com (192.168.1.151) -> Install Apache Web Server here | * server2.example.com (192.168.1.151) -> Install Apache Web Server here | ||
+ | |||
+ | **Previous Sections Completed** | ||
+ | * [[linux_wiki: | ||
+ | * Except leave listening on port 80/tcp | ||
---- | ---- | ||
Line 25: | Line 29: | ||
< | < | ||
- | | + | |
- | DocumentRoot / | + | |
ServerName bluesite.example.com | ServerName bluesite.example.com | ||
+ | DocumentRoot / | ||
+ | |||
+ | # Log files | ||
ErrorLog logs/ | ErrorLog logs/ | ||
CustomLog logs/ | CustomLog logs/ | ||
Line 36: | Line 42: | ||
On server2: Create directory and index file for myvhost | On server2: Create directory and index file for myvhost | ||
<code bash> | <code bash> | ||
- | mkdir / | + | mkdir / |
- | echo "The myvhost virtual host index" | + | echo '< |
</ | </ | ||
Line 51: | Line 57: | ||
vim /etc/hosts | vim /etc/hosts | ||
- | 192.168.1.151 server2 | + | 192.168.1.151 server2 |
</ | </ | ||
Line 57: | Line 63: | ||
On server1: Check virtual host site | On server1: Check virtual host site | ||
<code bash> | <code bash> | ||
- | elinks http://myvhost.example.com | + | elinks http://bluesite.example.com |
</ | </ | ||
---- | ---- | ||