Configure NginX: Difference between revisions
Jump to navigation
Jump to search
imported>Jacob No edit summary |
No edit summary |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 7: | Line 7: | ||
Setup nginx.xonf file<br> | Setup nginx.xonf file<br> | ||
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 | 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 to /usr/local/etc/nginx/nginx.conf | ||
># cp /usr/local/share/examples/poudriere/nginx.conf.sample /usr/local/etc/nginx/ | ># cp /usr/local/share/examples/poudriere/nginx.conf.sample /usr/local/etc/nginx/00_mypkg.conf | ||
Then edit the nginx.conf file and include the file. | Then edit the nginx.conf file and include the file. | ||
># vim /usr/local/etc/nginx/nginx.conf | ># vim /usr/local/etc/nginx/nginx.conf | ||
... | ... | ||
include /usr/local/etc/nginx/ | include /usr/local/etc/nginx/00_mypkg.conf; | ||
Modify the listen and name parts in | Modify the listen and name parts in 00_mypkg.conf | ||
># vim /usr/local/etc/nginx/ | ># vim /usr/local/etc/nginx/00_mypkg.conf | ||
... | ... | ||
listen | listen 192.168.1.99:80; | ||
server_name | server_name mypkg.example.com; | ||
... | ... | ||
Start the server<br> | Start the server<br> | ||
| Line 24: | Line 24: | ||
># service nginx start | ># service nginx start | ||
Now connect to http:// | Now connect to http://mypkg.example.com and check that we have a function website | ||
Latest revision as of 09:24, 20 March 2021
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 to /usr/local/etc/nginx/nginx.conf
># cp /usr/local/share/examples/poudriere/nginx.conf.sample /usr/local/etc/nginx/00_mypkg.conf
Then edit the nginx.conf file and include the file.
># vim /usr/local/etc/nginx/nginx.conf
...
include /usr/local/etc/nginx/00_mypkg.conf;
Modify the listen and name parts in 00_mypkg.conf
># vim /usr/local/etc/nginx/00_mypkg.conf
...
listen 192.168.1.99:80;
server_name mypkg.example.com;
...
Start the server
># service php-fpm start ># service nginx start
Now connect to http://mypkg.example.com and check that we have a function website
Previous Create SSL Certificate and Key Next Create first poudriere set