No video
How to build Nginx from Source Code | How to add module in Nginx after building from Source
In this video, I am going to explain how to build and install the Nginx from source code?
Steps:
Download Nginx tarball from nginx.org.
wget nginx.org/download/nginx-1.16...
tar -xf nginx-1.16.1.tar.gz
cd nginx-1.16.1/
apt-get install build-essential
./configure
apt-get install zlib* gzip* libssl-dev
./configure --sbin-path=/usr/bin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --pid-path=/var/run/nginx.pid
make
make install
nginx -V
Nginx Play List:
• Nginx High Performing ...
Пікірлер: 24
Great learning experience. Many of my doubts are cleared now.
@ServerGyan
3 жыл бұрын
Thank you dear for your words Happy learning
Thank you for your video support. Just for note ~ nginx -s stop # --> stop services nginx # -> -start services nginx -t # -> test config nginx -s reload # -> reload services nginx ?? for enable auto when reboot server
Thanks you Anna 😊
@ServerGyan
4 жыл бұрын
Welcome dear, happy learning
Hi sir, Your sessions is very helpful for us Sir please update New Feb2020 Only AWS cloud admin interview question.
@ServerGyan
4 жыл бұрын
Okay dear, sure I will update it soon
if I lost pem file of running instance then how can i access that instance. please suggest solution instead of take ami of it and access by another key. and also your video is superb.
make[1]: *** [objs/Makefile:282: objs/src/core/nginx.o] Error 1 make[1]: Leaving directory '/opt/nginx-0.1.42' make: *** [Makefile:3: build] Error 2 getting this error on make command Any solutions ?
I want to use a reverse proxy (let say nginx ) such that , when request comes i will do some calculations in python on request parameters(body,header) ,and if my python function returns TRUE then ONLY I will alow that request to reach at destination server else return 500 error. Is nginx or other reverse proxy servers allows us to implement such custom python based checks ?
@ServerGyan
3 жыл бұрын
By default it’s not allowed
@mangeshgupta5677
3 жыл бұрын
@@ServerGyan how can we make this work?😅
It'd be great if you could make a tutorial on how to build nginx with php and php-fpm along with rtmp module to be used as a standalone web server for example on /home/myuser
cannot start
How to add new modules into the existing nginx source code?
@ServerGyan
4 жыл бұрын
When you install nginx using source code, you can re compile it with new module, which is available with the version
Hi Sir, I have create subdomain in nginx but it open main domain page what the problem any solution please suggest me
@ServerGyan
4 жыл бұрын
What error are you getting
@VivekGupta-ie6vd
4 жыл бұрын
@@ServerGyan there is no error page openings main page not sub domain html page
How to install our own nginx with name nginx-my.
@ServerGyan
4 жыл бұрын
Hi dear, Can you please elaborate your question
@sreekuttysree3496
4 жыл бұрын
@@ServerGyan I need to build nginx from source with name nginx-cn. So after installation nginx-cn -t