# Reconfigure nginx

**URL:** <https://www.ruby-forum.com/t/reconfigure-nginx/205174>\
**Category:** NGINX\
**Created:** [March 31, 2011, 6:01am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174 "2011-03-31T06:01:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 31, 2011, 6:01am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/1 "2011-03-31T06:01:01Z")

</div>

I’ve installed nginx and run site success.but now,i wish reconfigure  
nginx with same configure before and add send mail command.

```auto
sudo ./configure --sbin-path=/usr/local/sbin
--with-http_stub_status_module --with-http_flv_module
--with-http_ssl_module --with-http_gzip_static_module
--with-http_realip_module --without-mail_pop3_module
--without-mail_imap_module --without-mail_smtp_module
--add-module=../masterzen-nginx-upload-progress-module/
--add-module=../nginx_upload_module-2.2.0/
```

So if i reconfigure,should backup config before?and what configure i do  
now?  
Thanks.

Posted at Nginx Forum:

> **[Reconfigure nginx](https://forum.nginx.org/read.php?2,187028,187028#msg-187028)**
>
> I've installed nginx and run site success.but now,i wish reconfigure nginx with same configure before and add send mail command. \[code\] sudo ./configure --sbin-path=/usr/local/sbin --with-http\_stub\_status\_module --with-http\_flv\_module...

---

<div class="post-metadata">

**Author:** ![rok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@rok](https://www.ruby-forum.com/u/rok)\
**Post date:** [March 31, 2011, 6:35am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/2 "2011-03-31T06:35:34Z")

</div>

On Mar 31, rok wrote:

> ```auto
> sudo ./configure --sbin-path=/usr/local/sbin
> ```
> 
> So if i reconfigure,should backup config before?and what configure i do  
> now?

First off, there is no need to run ./configure as sudo. It is a part of  
the install process (usually ./configure, make, sudo make install).  
Secondly, ./configure has nothing to do with config files, it is just a  
step in the gnu toolchain build process.

“make install” does not overwrite existing configs. However, it is  
always prudent to make a backup of your nginx.conf

---

<div class="post-metadata">

**Author:** ![rok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@rok](https://www.ruby-forum.com/u/rok)\
**Post date:** [March 31, 2011, 8:17am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/3 "2011-03-31T08:17:20Z")

</div>

## anomalizer Wrote:

> sudo. It is a part of  
> the install process (usually ./configure, make,  
> sudo make install).  
> Secondly, ./configure has nothing to do with  
> config files, it is just a  
> step in the gnu toolchain build process.
> 
> “make install” does not overwrite existing  
> configs. However, it is  
> always prudent to make a backup of your nginx.conf

And what about reconfigure nginx with same configure before and add send  
mail command.?I must delete old folder nginx-0.8.54 or reconfigure with  
old folder?  
Add mail:  
–with-mail\_pop3\_module --with-mail\_imap\_module --with-mail\_smtp\_module

?

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,187028,187040#msg-187040](http://forum.nginx.org/read.php?2,187028,187040#msg-187040)

---

<div class="post-metadata">

**Author:** ![rok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@rok](https://www.ruby-forum.com/u/rok)\
**Post date:** [March 31, 2011, 8:24am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/4 "2011-03-31T08:24:09Z")

</div>

On Thu, Mar 31, 2011 at 02:16:55AM -0400, rok wrote:

> > always prudent to make a backup of your nginx.conf
> 
> And what about reconfigure nginx with same configure before and add send  
> mail command.?I must delete old folder nginx-0.8.54 or reconfigure with  
> old folder?  
> Add mail:  
> –with-mail\_pop3\_module --with-mail\_imap\_module --with-mail\_smtp\_module
> 
> ?

You should go to the nginx-0.8.54 directory and run  
make clean  
./configure …

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![rok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@rok](https://www.ruby-forum.com/u/rok)\
**Post date:** [March 31, 2011, 9:07am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/5 "2011-03-31T09:07:58Z")

</div>

And what about add send mail command.?  
–with-mail --with-mail\_ssl\_module --without-mail\_pop3\_module  
–without-mail\_imap\_module --without-mail\_smtp\_module  
But drupal say cannot send mail…

Posted at Nginx Forum:

> **[Re: Reconfigure nginx](https://forum.nginx.org/read.php?2,187028,187048#msg-187048)**
>
> I've installed nginx and run site success.but now,i wish reconfigure nginx with same configure before and add send mail command. \[code\] sudo ./configure --sbin-path=/usr/local/sbin --with-http\_stub\_status\_module --with-http\_flv\_module...

---

<div class="post-metadata">

**Author:** ![rok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@rok](https://www.ruby-forum.com/u/rok)\
**Post date:** [March 31, 2011, 9:16am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/6 "2011-03-31T09:16:35Z")

</div>

On Thu, Mar 31, 2011 at 03:07:36AM -0400, rok wrote:

> And what about add send mail command.?  
> –with-mail --with-mail\_ssl\_module --without-mail\_pop3\_module  
> –without-mail\_imap\_module --without-mail\_smtp\_module  
> But drupal say cannot send mail…

These are mail proxiyng modules. nginx can not send mail.

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![rok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@rok](https://www.ruby-forum.com/u/rok)\
**Post date:** [March 31, 2011, 9:27am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/7 "2011-03-31T09:27:43Z")

</div>

Or drupal 7 installed on nginx can send mail?how todo this?  
Thanks!

Posted at Nginx Forum:

> **[Re: Reconfigure nginx](https://forum.nginx.org/read.php?2,187028,187052#msg-187052)**
>
> I've installed nginx and run site success.but now,i wish reconfigure nginx with same configure before and add send mail command. \[code\] sudo ./configure --sbin-path=/usr/local/sbin --with-http\_stub\_status\_module --with-http\_flv\_module...

---

<div class="post-metadata">

**Author:** ![rok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@rok](https://www.ruby-forum.com/u/rok)\
**Post date:** [March 31, 2011, 9:39am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/8 "2011-03-31T09:39:28Z")

</div>

Ohhh…send mail just install by:  
sudo apt-get install sendmail

Posted at Nginx Forum:

> **[Re: Reconfigure nginx](https://forum.nginx.org/read.php?2,187028,187056#msg-187056)**
>
> I've installed nginx and run site success.but now,i wish reconfigure nginx with same configure before and add send mail command. \[code\] sudo ./configure --sbin-path=/usr/local/sbin --with-http\_stub\_status\_module --with-http\_flv\_module...

---

<div class="post-metadata">

**Author:** ![rok](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d2c977/32.png) [@rok](https://www.ruby-forum.com/u/rok)\
**Post date:** [March 31, 2011, 9:22am UTC](https://www.ruby-forum.com/t/reconfigure-nginx/205174/9 "2011-03-31T09:22:09Z")

</div>

Thanks…So,what configure nginx can send mail?

Posted at Nginx Forum:

> **[Re: Reconfigure nginx](https://forum.nginx.org/read.php?2,187028,187051#msg-187051)**
>
> I've installed nginx and run site success.but now,i wish reconfigure nginx with same configure before and add send mail command. \[code\] sudo ./configure --sbin-path=/usr/local/sbin --with-http\_stub\_status\_module --with-http\_flv\_module...
