-
-
Notifications
You must be signed in to change notification settings - Fork 658
Description
Have you already checked elsewhere?
- I have read the Devilbox documentation
- I have checked the Devilbox Troubleshooting Guide
- I have checked the Devilbox FAQ
- I have checked the Devilbox Howto
- I have checked the Devilbox Forum
- I have checked existing issues
- 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 <project name>.<TLD_SUFFIX>
I'd like to create a ServerAlias
which is just equal to <project name>. That is, without the TLD_SUFFIX added.
What have you tried already?
From what I can tell, as <project name> 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.