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

Add option on .env to change ending of vitualhost #10

Closed
cagartner opened this issue Oct 27, 2016 · 5 comments
Closed

Add option on .env to change ending of vitualhost #10

cagartner opened this issue Oct 27, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@cagartner
Copy link

It would be very nice to be able to change the end of the virtual host on .env file.

Cheers.

@cytopia cytopia added this to the 1.1 milestone Oct 27, 2016
@cytopia
Copy link
Owner

cytopia commented Oct 27, 2016

If I understand correctly, you want to have domain names from *.loc to by dynamic to make it for example *.test or *.example?

This is tricky and will require some re-organisation.
Currently domain endings are hard-coded in e.g.: .devilbox/etc/nginx-stable/02-vhost-mass.conf (and other webserver configs).

Sounds however reasonable.

I will schedule it to 1.1 for now, as I don't know how fast i can come up with a good solution.

Solutions welcome :-)

@cagartner
Copy link
Author

Exactly,

I changed this config on my local development and worked, for me ok.

Maybe this config can be changed on a online editor in http://localhost on any future update.

Thank you for the awesome work :) and sorry for my bad english.

@cytopia cytopia mentioned this issue Nov 3, 2016
42 tasks
cytopia added a commit that referenced this issue Nov 6, 2016
@cytopia
Copy link
Owner

cytopia commented Nov 6, 2016

It is not yet fully dynamic, but if you want to change the TLD suffix, you will do have to to that in two places at the moment:

.devilbox/www/config.php at $TLD_SUFFIX as well as in your webservers mass vhost config file .devilbox/etc/<webserver>/02-vhost-mass.conf

Might be soon a single option inside .env

@leobudima
Copy link

FWIF, editing 02-vhost-mass.conf as:

ServerAlias *
VirtualDocumentRoot /shared/httpd/%0/htdocs/

solved the problem for me and projects / vhosts can now be called whatever.

@cytopia cytopia modified the milestones: 1.0, 0.9 Apr 25, 2017
@cytopia cytopia self-assigned this Apr 25, 2017
@cytopia cytopia mentioned this issue May 6, 2017
22 tasks
@cytopia cytopia modified the milestones: 0.9, 1.0 May 7, 2017
@cytopia
Copy link
Owner

cytopia commented May 21, 2017

@cagartner @leobudima Now fixed in new release.

@cytopia cytopia closed this as completed May 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants