software:webdesign
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:webdesign [2017/11/26 23:24] – superwizard | software:webdesign [2019/07/13 07:30] (current) – [Sample Virtual Hosts] superwizard | ||
|---|---|---|---|
| Line 81: | Line 81: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ====== Check List for Adding Virtual Host ====== | ||
| + | |||
| + | From: | ||
| + | |||
| + | * Add database | ||
| + | * Add dns entry to registrar nameserver | ||
| + | * Add dns name to hosts | ||
| + | * Add files | ||
| + | * Add Apache2 virtualhost configuration / | ||
| + | * Add service to Apache2 | ||
| + | * Start service | ||
| + | |||
| + | |||
| + | |||
| + | ====== Apache Main Conf ====== | ||
| + | |||
| + | < | ||
| + | ServerAdmin you@example.com | ||
| + | |||
| + | # ServerName gives the name and port that the server uses to identify itself. | ||
| + | ServerName 0bf0b12d169b | ||
| + | |||
| + | # Virtual hosts | ||
| + | #Include conf/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ====== Sample Virtual Hosts ====== | ||
| + | |||
| + | < | ||
| + | < | ||
| + | # The ServerName directive sets the request scheme, hostname and port that | ||
| + | # the server uses to identify itself. This is used when creating | ||
| + | # redirection URLs. In the context of virtual hosts, the ServerName | ||
| + | # specifies what hostname must appear in the request' | ||
| + | # match this virtual host. For the default virtual host (this file) this | ||
| + | # value is not decisive as it is used as a last resort host regardless. | ||
| + | # However, you must set it for any further virtual host explicitly. | ||
| + | |||
| + | ServerName localhost | ||
| + | ServerAdmin madmin@madmin.yall | ||
| + | DocumentRoot / | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | < | ||
| + | ServerName drupy.madmin.yall | ||
| + | ServerAlias *.madmin.yall | ||
| + | |||
| + | ServerAdmin madmin@madmin.yall | ||
| + | DocumentRoot / | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | < | ||
| + | ServerName services.madmin.yall | ||
| + | ServerAlias *.madmin.yall | ||
| + | |||
| + | ServerAdmin madmin@madmin.yall | ||
| + | DocumentRoot / | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | |||
| + | Alias /blog / | ||
| + | < | ||
| + | Options FollowSymLinks | ||
| + | AllowOverride Limit Options FileInfo | ||
| + | DirectoryIndex index.php | ||
| + | Order allow,deny | ||
| + | Allow from all | ||
| + | </ | ||
| + | < | ||
| + | Options FollowSymLinks | ||
| + | Order allow,deny | ||
| + | Allow from all | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| ====== Common Apache Misconfigurations ====== | ====== Common Apache Misconfigurations ====== | ||
| Line 104: | Line 197: | ||
| From: https:// | From: https:// | ||
| + | |||
| + | Also: https:// | ||
| < | < | ||
| Line 472: | Line 567: | ||
| From: http:// | From: http:// | ||
| + | |||
| + | Tutorial: https:// | ||
| + | |||
software/webdesign.1511738687.txt.gz · Last modified: by superwizard
