This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80 default; | |
| # server_name ~^(www\.)?(?<domain>.+)$; | |
| # The goal here is to allow for subdomains. We stack in reverse | |
| server_name ~^(?<subdomain>\.)?(?<domain>.+)$; | |
| root /opt/sites/$domain/$subdomain/public_html/; | |
| access_log /opt/sites/$domain/logs/access.log; |