Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Howto]: Create apache ServerAlias for project name (without TLD_SUFFIX) #1036

Open
3 of 8 tasks
raintonr opened this issue Jan 3, 2025 · 0 comments
Open
3 of 8 tasks

Comments

@raintonr
Copy link

raintonr commented Jan 3, 2025

Have you already checked elsewhere?

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant