Questions tagged [configuration]

Configuration is a general term that can refer to the arrangement of functional units according to their nature and characteristics. Also, it can refer to software configuration which more suitable for server-related topics.

Filter by
Sorted by
Tagged with
49 votes
7 answers
63k views

How can I prevent a DDOS attack on Amazon EC2?

One of the servers I use is hosted on the Amazon EC2 cloud. Every few months we appear to have a DDOS attack on this sever. This slows the server down incredibly. After around 30 minutes, and ...
cwd's user avatar
  • 2,793
44 votes
5 answers
81k views

verify sshd configuration

How I can verify the configuration of sshd? For example, I want to make sure that these settings are set and applied: AllowUsers user1 user2 PasswordAuthentication no PermitRootLogin no Is the ...
JuanPablo's user avatar
  • 943
43 votes
4 answers
37k views

Directly editing IIS 7 applicationHost.config configuration file

I know that IIS 7+ uses XML config files instead of the metabase. I also know that if I edit a web.config file for a given site, IIS automagically detects the changes and implements any corresponding ...
lunadesign's user avatar
29 votes
6 answers
34k views

How to use a custom .bashrc file on SSH login

I've found that with the new company I'm working with I often have to access linux servers with relatively short lifetimes. On each of these servers I have an account, but whenever a new one is ...
gsgx's user avatar
  • 392
27 votes
4 answers
9k views

How to write a DRY, modular nginx conf (reverse proxy) with named locations

I'm using nginx mostly as a reverse cachining proxy in front of several gunicon/mod_wsgi applications and of course to server static files. I find that quickly my nginx confs become impossible to ...
Stefano's user avatar
  • 783
26 votes
2 answers
39k views

What is the difference between using upstream and location for php-fpm?

I've been searching around but couldn't find a straight answer, if someone could please clarify this, would be greatly appreciated, thanks! location ~ \.php$ { try_files $uri = 404; ...
Van Nguyen's user avatar
23 votes
2 answers
71k views

How should I use the <If> directive in .htaccess?

I'm trying to add a conditional statement using Apache's If directive in my .htaccess file. I have referenced this page http://httpd.apache.org/docs/trunk/mod/core.html#if but it doesn't elaborate ...
cwd's user avatar
  • 2,793
19 votes
4 answers
41k views

How do you conditionally include files in Nginx vhost?

In the lines below, I might have a site-specific configuration file that contains additional fastcgi_params unique to that site. If this file exists I want to load it. server { listen 80 ...
Xeoncross's user avatar
  • 4,539
16 votes
5 answers
356k views

How to check if hardware RAID is configured?

I have several servers running Windows 2008 and Red Hat 5 that are capable of hardware RAID. How do I check that hardware RAID is configured?
lillq's user avatar
  • 317
15 votes
11 answers
15k views

How can I diff two config files?

I've got two snmpd.conf files, one on a server that works, and one that doesn't. How can I diff the two config files while stripping out irrelevant comments and newlines?
jldugger's user avatar
  • 14.5k
14 votes
3 answers
38k views

Will a graceful reload of Apache configuration require the SSL Cert password?

I have an apache server running that required a minor configuration update. I want to force Apache to reload the config (e.g. via /etc/init.d/httpd reload or apachectl graceful), but I do not posses ...
Colin K's user avatar
  • 243
12 votes
2 answers
48k views

Apache / httpd not starting automatically on boot

I have apache2 installed on Amazon Linux AMI release 2012.03. I'm able to start it manually just fine, without any errors using /etc/init.d/httpd start. However, it doesn't start automatically when ...
Mike Cialowicz's user avatar
11 votes
2 answers
6k views

Use FallbackResource even if directory exists

I've set up my virtual host on Apache 2.4.7 with a very basic configuration: <VirtualHost *:80> ServerName foo.example.com DocumentRoot /var/www/html DirectoryIndex index.php ...
Jack's user avatar
  • 646
11 votes
1 answer
75k views

Increase the value of LimitRequestFieldSize in Apache

I have developed an application which uses a jQuery plugin, which in turn uses excessive cookie data. The problem is, after every 15-20 request I am shown this error message by the browser: Your ...
Ibrahim Azhar Armar's user avatar
11 votes
2 answers
13k views

Will changing applicationHost.config cause IIS7 restart?

If I make a change to the file: %windir%\system32\inetsrv\config\applicationHost.config and update it with a change resulting in a valid config, will it cause IIS7 to restart and force restarts on ...
Kenny's user avatar
  • 520
10 votes
5 answers
126k views

How can I configure TomCat Java options in a config file?

I'm trying to configure Java options passed into TomCat for a 3rd party application that I'm deploying. The instructions that the app provides are: Open the Tomcat configuration tool from the ...
Kip's user avatar
  • 3,530
10 votes
1 answer
39k views

how can i change nginx Configuration file path

i have installed nginx in ubuntu16.04, and check that Configuration file location is /etc/nginx/conf/nginx.conf $ /usr/sbin/nginx -V 2>&1 | grep --colour=auto conf then Show Configuration ...
Rajkumar .E's user avatar
9 votes
2 answers
9k views

How to block Nginx access log statements from specific user agents

I am looking to turn off logging in the Nginx access log file from specific requests from http user agents. Basically from the Amazon ELB Health Check and our external (Pingdom) monitoring. Since ...
briannyc's user avatar
8 votes
2 answers
14k views

how to configure open ldap to work on localhost

From the documentation: Use your favorite editor to edit the provided slapd.conf(5) example (usually installed as /usr/local/etc/openldap/slapd.conf) to contain a BDB database definition of ...
Itay Moav -Malimovka's user avatar
8 votes
1 answer
1k views

Is there a global config file for Unison synchronization tool?

I'd like all my unison profiles to have merge = Name * -> meld CURRENT1 CURRENT2 diff = /usr/bin/meld CURRENT1 CURRENT2 confirmmerge = true as options. I know I can add these options to each .prf ...
mp04's user avatar
  • 217
8 votes
5 answers
17k views

Methods for analyzing Red Hat sosreport output?

For some time (since EL 4.6), Red Hat has embedded a system report and troubleshooting tool into the operating system. The tool, sosreport, collects system information and settings and bundles it into ...
ewwhite's user avatar
  • 198k
7 votes
2 answers
32k views

CentOS default ssl.conf file

Does anybody have a default ssl.conf file for the latest version of CentOS? I am trying to understand if I can use the auto-generated SSL certificate, but I accidentally overwrote it with another ssl....
Adrien Hingert's user avatar
7 votes
2 answers
13k views

Rewrite URL before passing to proxy Lighttpd

I'm trying to setup a reverse proxy in lighttpd, such that all requests (and only those requests) under /mobile/video is redirected to the / directory of a secondary web server. This is pretty easy in ...
futureelite7's user avatar
7 votes
5 answers
28k views

Issues with nginx autoindex

I am trying to set up nginx so that a certain url produces the directory index of a certain directory on my server. Currently this is what my default.conf looks like. location / { root /...
Varun Madiath's user avatar
7 votes
3 answers
21k views

How to find out what program is sending emails

I have linux (debian) box which is running fine. However I have problem I need to find out what program is sending emails when i use "mail" command. Or for that matter when a PHP script is sending ...
Sinan's user avatar
  • 191
7 votes
1 answer
12k views

nginx - deny all *.php requests except index.php for security reasons

os: CentOS 7 nginx: 1.6.2 httpd: apache 2.4.6 cms: Drupal 7 After my server was compromised I removed all from server, reinstalled OS and soft, and restored data from backup. Now I configure all ...
Sergey Serov's user avatar
7 votes
2 answers
803 views

Should Production Windows Web Servers (IIS & SQL) be in a domain?

We have a few web servers and a few database servers. To date, they've been standalone machines that are not part of a domain. The web servers don't talk to each other, and the web servers talk to ...
Tom Lianza's user avatar
6 votes
2 answers
15k views

How do I set up Postfix *_restrictions configuration parameters safely with whitelists and blacklists?

Learning and Trying to Understand I've spent the last week learning about what Postfix can do to help reduce spam. If I understand correctly the different *_restrictions configuration parameters ...
toxalot's user avatar
  • 273
6 votes
1 answer
2k views

postfix TLS configuration for incoming gmx-mail

I set up my mailserver with postfix 2.7.1 and dovecot 1.2.15 and everything seemed to work just fine, but now I found out that people using @gmx.net addresses cannot send emails to me and rather ...
Stefan's user avatar
  • 163
6 votes
4 answers
13k views

ubuntu server, ssh, write failed: broken pipe

I'm getting some bizarre behavior with Ubuntu Server 10.04 64bit on two of our new servers (both fresh installs). I have ubuntu server (same version) deployed on 4-5 other servers without this issue. ...
cmhobbs's user avatar
  • 267
6 votes
3 answers
8k views

Find IP address of a device?

Open question: How to find the IP address of a device? As I understand, there are no guaranteed methods that work always, but there's a hundred approaches that work in specific situations, and I'd ...
5 votes
4 answers
42k views

What are default postfix smtp settings?

This may be a lame question.. All the time I was using postfix to send mails via my rails app. I just install postfix via these commands, cause i never really thought about the what actually going ...
Mohit Jain's user avatar
5 votes
2 answers
9k views

Overriding Nagios hostgroup service with host service

I currently am experimenting with defining a set of services to all hosts in a hostgroup, this is working fine. My issue is that I then want to be able to override these service definitions which ...
Geekman's user avatar
  • 451
5 votes
1 answer
15k views

FTP issue - VSFTPd and connecting to from FileZilla

I'm trying to connect to a CentOS Linux box that I have hosted on EC2 and I think I have everything configured correctly but when I try to connect I get this series of messages Status: Connection ...
Tyndall's user avatar
  • 601
5 votes
4 answers
31k views

Configuring a service to be started under Local Service account from command line

How can this problem be solved? I know there is a sc utility, but I don't know how to assign the Local Service account to the obj parameter (because of the spaces in the name), and how to assign a ...
alh84001's user avatar
  • 153
5 votes
1 answer
36k views

network configuration (bridging) proxmox

I bought yesterday an proxmox license. All works fine only the network configuration is very complicated. My network configuration: 84.200.50.186 -> hostsystem ip 84.200.50.186 -> VM ip 255.255....
user3453549's user avatar
5 votes
2 answers
5k views

Recompile NGINX with "--with-http_stub_status_module" configure line

I've installed NGINX with sudo apt-get install nginx and now I'd like to recompile it with the configure option --with-http_stub_status_module. How can I do this, and is there a way I can not loose ...
tarnfeld's user avatar
  • 471
4 votes
3 answers
7k views

VMWare Workstation - how to automate or script changes to the virtual network configuration

VMWare Workstation (I'm using V8 on Linux) provides a GUI tool, Virtual Network Editor (vmware-netcfg) to edit the virtual network adapter settings for use by the VMs on the system. I'm dealing with ...
mustaccio's user avatar
  • 282
4 votes
3 answers
15k views

Any Problems with many NFS mounts?

We are currently considering a solution that results in a separate mount point for every user's home directory. Whereas we used to have at most a couple mounts per file server on a client, we now ...
Chad Huneycutt's user avatar
4 votes
4 answers
4k views

Install Trac Without Setting Up a VirtualHost in Apache?

I'm trying to set up Trac to test out it's functionality, and the only guides I can find online talk about setting up a VirtualHost. Right now I am under the impression that I need access to a DNS ...
jobu1324's user avatar
  • 495
4 votes
1 answer
638 views

Mysql InnoDB table size performance

I have a table that is closely approaching 2 million records. This table stores a history of transactions. This is on a high traffic website but also the table is not accessed regularly. We ...
pablo's user avatar
  • 3,040
4 votes
2 answers
5k views

Debian Wheezy IPv6 isn't configured with ifup post-up hook

We recently set up a server on Debian Wheezy Beta 3 (x86_64) which has a native IPv6 connection. We configured the eth0 interface to get the IPv6 configuration through some post-up hook commands in /...
aef's user avatar
  • 1,755
4 votes
1 answer
4k views

throttle nginx bandwidth per website

i would like to limit website's bandwidth using Nginx in order to share it among multiple websites like i'm able to do in IIS7. From reading the doc, i found i need to use limit_req_zone inside ...
Zulgrib's user avatar
  • 349
4 votes
2 answers
11k views

How to use a variable in a regular expression in nginx?

I've spent some time trying to find the answer before writing this question: I have several location blocks in my nginx config file that look like this: location ~ ^/(doc|img|bla|foo)/metadata/$ { .....
jfix's user avatar
  • 211
4 votes
3 answers
38k views

Apache start failing after apache config modifications, showing syntax error, cannot load php5apache2_2.dll into server

I am stuck again with apache setup guys. I am working on a 64-bit system running Windows 7 professional with service pack 1. I copied the working php5 installation directory from teammates, copied the ...
Sandeepan Nath's user avatar
4 votes
1 answer
3k views

How to transfer config of one mailman list to another?

I want to transfer one mailman list from one server to another. I guess the old config is in the mailman\lists\LISTNAME\config.pck file, but i can't read it and I don't want to blind copy files around ...
wurlog's user avatar
  • 333
4 votes
2 answers
13k views

QoS for Cisco Router to Prioritize Voice and Interactive Traffic

I have a Cisco 891W NATing Voice and Data to the internet over a 10mbit/2mbit connection. Voice traffic gets degraded when I upload large files. Pings time out as well. I tried to configure a QoS ...
user avatar
4 votes
2 answers
4k views

unattended BIOS configuration for HP server (DL160SE G6)

We are having a big deployment of servers (DL160SE G6) and I need to find a way to configure their BIOS settings without going through the RBSU of each one - It would take too long. I am thinking ...
ToastMan's user avatar
  • 544
3 votes
1 answer
905 views

How to retain domain name in url - Configuring Virtual host in apache 2 with aws linux instance

I'm trying to configure virtual host in apache2 in ubuntu instance hosted with aws and successfully redirected the requests to the appropriate website. Further clicking on the links on the index ...
Vivek's user avatar
  • 93
3 votes
1 answer
5k views

How to make my linux vm attach to an openvswitch bridge?

I am following this tutorial: http://networkstatic.net/wp-content/uploads/2012/04/openvswitch.openflow.gre_.tutorial1.pdf In brief: br0 is connected to the actual net, br1 is an isolated bridge to ...
Phate's user avatar
  • 155