sendmail: how to configure sendmail on ubuntu? [closed]

When you typed in sudo sendmailconfig, you should have been prompted to configure sendmail. For reference, the files that are updated during configuration are located at the following (in case you want to update them manually): /etc/mail/sendmail.conf /etc/cron.d/sendmail /etc/mail/sendmail.mc You can test sendmail to see if it is properly configured and setup by typing the … Read more

ASP.NET web.config: configSource vs. file attributes

file attribute Specifies a relative path to an external file that contains custom application configuration settings specific to the appSettings section will merge (and override) settings in the .config file will not cause web application to restart when modifying the specified file http://msdn.microsoft.com/en-US/library/ms228154(v=vs.100).aspx Using the Configuration.AppSettings.Settings.Add API will result in all settings being merged back … Read more

Using different Web.config in development and production environment

In Visual Studio 2010 and above, you now have the ability to apply a transformation to your web.config depending on the build configuration. When creating a web.config, you can expand the file in the solution explorer, and you will see two files: Web.Debug.Config Web.Release.Config They contain transformation code that can be used to Change the … Read more

What does upstream mean in nginx?

It’s used for proxying requests to other servers. An example from http://wiki.nginx.org/LoadBalanceExample is: http { upstream myproject { server 127.0.0.1:8000 weight=3; server 127.0.0.1:8001; server 127.0.0.1:8002; server 127.0.0.1:8003; } server { listen 80; server_name www.domain.com; location / { proxy_pass http://myproject; } } } This means all requests for / go to the any of the servers … Read more

How do I prevent a Gateway Timeout with FastCGI on Nginx

Proxy timeouts are well, for proxies, not for FastCGI… The directives that affect FastCGI timeouts are client_header_timeout, client_body_timeout and send_timeout. Edit: Considering what’s found on nginx wiki, the send_timeout directive is responsible for setting general timeout of response (which was bit misleading). For FastCGI there’s fastcgi_read_timeout which is affecting the FastCGI process response timeout.

How to configure postgresql for the first time?

The other answers were not completely satisfying to me. Here’s what worked for postgresql-9.1 on Xubuntu 12.04.1 LTS. Connect to the default database with user postgres: sudo -u postgres psql template1 Set the password for user postgres, then exit psql (Ctrl-D): ALTER USER postgres with encrypted password ‘xxxxxxx’; Edit the pg_hba.conf file: sudo vim /etc/postgresql/9.1/main/pg_hba.conf … Read more