[Howto]: Create apache ServerAlias for project name (without TLD_SUFFIX)
- Dominant language
- PHP
- Stars
- 4.5k
- Forks
- 652
- PR merge metrics
- No merged PRs in 30d
Description
### Have you already checked elsewhere?
- [X] I have read the [Devilbox documentation](https://devilbox.readthedocs.io/en/latest/)
- [ ] I have checked the [Devilbox Troubleshooting Guide](https://devilbox.readthedocs.io/en/latest/)
- [ ] I have checked the [Devilbox FAQ](https://devilbox.readthedocs.io/en/latest/support/faq.html)
- [ ] I have checked the [Devilbox Howto](https://devilbox.readthedocs.io/en/latest/support/howto.html)
- [ ] I have checked the [Devilbox Forum](https://devilbox.discourse.group/)
- [X] I have checked [existing issues](https://github.com/cytopia/devilbox/issues)
- [X] I have googled already with no luck
- [ ] I have not done any of the above
### What are you struggling with?
vhost-gen creates Apache config with `ServerName` equal to \.\
I'd like to create a `ServerAlias` which is just equal to \. That is, **without** the TLD_SUFFIX added.
### What have you tried already?
From what I can tell, as \ is not available for use in the vhost-get tempates. Therefore in order to use a project name within, one must copy the template to that project directory and edit it and just hard code the project name within.
### What is your goal?
I actually want to do this as have DevilBox running behind a separate nginx proxy. The proxy handles requests from the outside internet to `example.com`, which have to be forwarded to `example.com.tld_suffix` within the LAN. This works great, but does not work if nginx is configured with `proxy_set_header Host $http_host;` - to correctly handle those Devilbox needs an alias of `example.com` adding.
Contributor guide
Assessment
This issue has not been assessed yet.