Configure NginX: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>Jacob
No edit summary
imported>Jacob
No edit summary
Line 8: Line 8:
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 tp /usr/local/etc/nginx/nginx.conf
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/00_sjapkg.conf
  ># cp /usr/local/share/examples/poudriere/nginx.conf.sample /usr/local/etc/nginx/00_YOURPKGNAME.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/00_sjapkg.conf;
         include /usr/local/etc/nginx/00_YOURPKGNAME.conf;


Modify the listen and name parts in 00_sjapkg.conf
Modify the listen and name parts in 00_YOURPKGNAME.conf
  ># vim /usr/local/etc/nginx/00_sjapkg.conf
  ># vim /usr/local/etc/nginx/00_YOURPKGNAME.conf
         ...
         ...
         listen      10.0.0.38:80;
         listen      10.0.0.38:80;

Revision as of 21:22, 16 February 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/00_YOURPKGNAME.conf

Then edit the nginx.conf file and include the file.

># vim /usr/local/etc/nginx/nginx.conf
       ...
       include /usr/local/etc/nginx/00_YOURPKGNAME.conf;

Modify the listen and name parts in 00_YOURPKGNAME.conf

># vim /usr/local/etc/nginx/00_YOURPKGNAME.conf
       ...
       listen       10.0.0.38:80;
       server_name  YOURPKGNAME.example.com;
       ...

Start the server

># service php-fpm start
># 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

Up Poudriere setup