apache_vhost_centos
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| apache_vhost_centos [2015/12/14 11:26] – luke7858 | apache_vhost_centos [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| <sxh bash> | <sxh bash> | ||
| < | < | ||
| - | ServerName | + | ServerName |
| - | ServerAlias www.e.com | + | ServerAlias www.example.com |
| - | DocumentRoot / | + | DocumentRoot / |
| - | < | + | < |
| Options Indexes FollowSymLinks | Options Indexes FollowSymLinks | ||
| AllowOverride None | AllowOverride None | ||
| Line 26: | Line 26: | ||
| </ | </ | ||
| \\ | \\ | ||
| + | Globally change website from example.com to your required domain: | ||
| + | <sxh bash> | ||
| + | : | ||
| + | </ | ||
| === Reloading Apache Configuration === | === Reloading Apache Configuration === | ||
| - | Once the vhost has been created you will need to reload apache for the configuration to take effect:\\ | + | Once the vhost has been created you will need to reload apache for the configuration to take effect\\ |
| \\ | \\ | ||
| Line 45: | Line 49: | ||
| </ | </ | ||
| \\ | \\ | ||
| - | Will will need to add an entry preventing other/all hidden files being served: | + | Will will need to add an entry preventing other/all hidden files being served. Add the following content directly under the above content in the httpd.conf (apache2.conf file) |
| + | <sxh bash> | ||
| + | < | ||
| + | Order Allow,Deny | ||
| + | Deny from All | ||
| + | Satisfy All | ||
| + | </ | ||
| + | </ | ||
apache_vhost_centos.1450092418.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
