Discussion:
[webmin-l] Virtualmin Nginx Server Block
Kimberly
2017-05-17 17:01:41 UTC
Permalink
I am not happy with the way the script writes the config for the server
blocks when a new Virtual Server is created; with Nginx of course.

Also, when SSL was enabled testing the config with Nginx returns the
error message that a duplicate default sever for xxx.xxx.xxx.xxx:443
exists where the xxxs are the actual IP.

Is the Nginx module for Virtualmin production ready or is there a
problem elsewhere? What is the script that creates the server blocks?
Kimberly
2017-05-17 18:29:46 UTC
Permalink
I figured out the error; for some reason multiple server blocks had
"default_server" under the SSL entry for the server block.
Post by Kimberly
I am not happy with the way the script writes the config for the server
blocks when a new Virtual Server is created; with Nginx of course.
Also, when SSL was enabled testing the config with Nginx returns the
error message that a duplicate default sever for xxx.xxx.xxx.xxx:443
exists where the xxxs are the actual IP.
Is the Nginx module for Virtualmin production ready or is there a
problem elsewhere? What is the script that creates the server blocks?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
-
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
Kimberly
2017-05-18 03:08:40 UTC
Permalink
I don't understand the way Virtualmin is creating Nginx server blocks.
When I do an SSL site, I write two blocks, one for port 80, one for port
443 and in the port 80. Virtualmin is not. The other question is how is
Virtualmin handling http to https?
Post by Kimberly
I figured out the error; for some reason multiple server blocks had
"default_server" under the SSL entry for the server block.
Post by Kimberly
I am not happy with the way the script writes the config for the server
blocks when a new Virtual Server is created; with Nginx of course.
Also, when SSL was enabled testing the config with Nginx returns the
error message that a duplicate default sever for xxx.xxx.xxx.xxx:443
exists where the xxxs are the actual IP.
Is the Nginx module for Virtualmin production ready or is there a
problem elsewhere? What is the script that creates the server blocks?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
-
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
-
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
Andrey Repin
2017-05-18 13:18:20 UTC
Permalink
Greetings, Kimberly!
Post by Kimberly
I don't understand the way Virtualmin is creating Nginx server blocks.
When I do an SSL site, I write two blocks, one for port 80, one for port
443 and in the port 80.
Eh? An example please?
Post by Kimberly
Virtualmin is not. The other question is how is
Virtualmin handling http to https?
It does not, everything is under your control. You can edit templates to your
heart's content.
--
With best regards,
Andrey Repin
Thursday, May 18, 2017 16:17:35

Sorry for my terrible english...
Kimberly
2017-05-18 14:33:26 UTC
Permalink
Where can I edit the template? I am setting up a server for someone
else; if for me I would just manually create the server blocks but the
person this is for knows little about Nginx.

When I tried to do the http to https, I see that the module does a
rewrite; I used Services -> Configure Nginx Website. I usually do a
return in the listen 80 block

return 301 https://$host$request_uri;

Thanks.
Post by Andrey Repin
Greetings, Kimberly!
Post by Kimberly
I don't understand the way Virtualmin is creating Nginx server blocks.
When I do an SSL site, I write two blocks, one for port 80, one for port
443 and in the port 80.
Eh? An example please?
Post by Kimberly
Virtualmin is not. The other question is how is
Virtualmin handling http to https?
It does not, everything is under your control. You can edit templates to your
heart's content.
Andrey Repin
2017-05-18 18:16:58 UTC
Permalink
Greetings, Kimberly!
Post by Kimberly
Where can I edit the template?
Virtualmin -> Server templates.
Post by Kimberly
I am setting up a server for someone
else; if for me I would just manually create the server blocks but the
person this is for knows little about Nginx.
When I tried to do the http to https, I see that the module does a
rewrite;
Worst possible solution.
Post by Kimberly
I used Services -> Configure Nginx Website. I usually do a
return in the listen 80 block
return 301 https://$host$request_uri;
I just make a single server template that incorporate two vhosts with same
name.
One port 80 return 301 https://$host$request_uri and one port 443 ssl.
--
With best regards,
Andrey Repin
Thursday, May 18, 2017 21:14:59

Sorry for my terrible english...
Loading...