Configure NginX: Difference between revisions
Jump to navigation
Jump to search
imported>Jacob No edit summary |
imported>Jacob No edit summary |
||
| Line 6: | Line 6: | ||
<hr><p style="text align:left;"> | <hr><p style="text align:left;"> | ||
Setup nginx.xonf file<br> | |||
The sample setup for for poudriere in /usr/local/share/examples/poudriere/nginx.conf.sample | The sample setup for for poudriere in /usr/local/share/examples/poudriere/nginx.conf.sample. If that is the only server on the host copy tp /usr/local/etc/nginx/nginx.conf | ||
Then edit the nginx.conf file and | ># cp /usr/local/share/examples/poudriere/nginx.conf.sample /usr/local/etc/nginx/nginx.conf | ||
Then edit the nginx.conf file and modify the listen and name parts | |||
># vim /usr/local/etc/nginx/nginx.conf | ># vim /usr/local/etc/nginx/nginx.conf | ||
... | |||
listen 10.0.0.68:80; | listen 10.0.0.68:80; | ||
server_name | server_name sjapkg.sjakio.com; | ||
... | |||
Start the server<br> | |||
Start the server | |||
># service nginx start | ># service nginx start | ||
Revision as of 17:18, 11 January 2020
Previous Create SSL Certificate and Key Next Create first poudriere set
Setup nginx.xonf file
The sample setup for for poudriere in /usr/local/share/examples/poudriere/nginx.conf.sample. If that is the only server on the host copy tp /usr/local/etc/nginx/nginx.conf
># cp /usr/local/share/examples/poudriere/nginx.conf.sample /usr/local/etc/nginx/nginx.conf
Then edit the nginx.conf file and modify the listen and name parts
># vim /usr/local/etc/nginx/nginx.conf
...
listen 10.0.0.68:80;
server_name sjapkg.sjakio.com;
...
Start the server
># service nginx start
Now connect to http://sjapkg.sjakio.com and check that we have a function website
Previous Create SSL Certificate and Key Next Create first poudriere set