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.

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.

A configuration file is usually a text file associated with a specific software which describes the initial settings of the software. Some applications provide tools to generate configuration files.

Some computer programs only read their configuration files at startup. Others periodically check the configuration files for changes. Users can instruct some programs to re-read the configuration files and apply the changes to the current process, or indeed to read arbitrary files as a configuration file. There are no definitive standards or strong conventions.

2704 questions
48
votes
2 answers

nginx split large configuration file

My nginx default configuration file is becoming huge. I'd like to split it to smaller config files, each including only one, maximum 4 locations to each file, so that I can enable/disable them quickly. Actual file looks like this: server { …
oliverjkb
  • 614
  • 1
  • 6
  • 10
44
votes
1 answer

Understanding the nginx proxy_cache_path directive

Suppose I have this nginx config file proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=myCache:8m max_size=100m inactive=1h; What does the keys_zone=myCache:8m mean? There's not much said to it in the docs: In addition, all active keys and…
Jürgen Paul
  • 1,265
  • 4
  • 15
  • 22
44
votes
2 answers

Merging variable with string in config file

I the have following setup in my conf file upload_set_form_field $upload_field_name.name "$upload_file_name"; But I want change chosen param name to: upload_set_form_field ($upload_field_name+"[name]") "$upload_file_name"; So I can get…
Swistak
  • 541
  • 1
  • 4
  • 4
43
votes
4 answers

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 config changes. However, does this also apply to…
lunadesign
  • 451
  • 1
  • 4
  • 3
43
votes
1 answer

Declaring multiple ports for the same VirtualHosts

Declare multiple ports for the same VirtualHosts: SSLStrictSNIVHostCheck off # Apache setup which will listen for and accept SSL connections on port 443. Listen 443 # Listen for virtual host requests on all IP addresses NameVirtualHost…
user65567
  • 671
  • 2
  • 6
  • 9
42
votes
3 answers

How to show the host/configured/default ssh "configuration"?

According to my ssh_config file... Configuration data is parsed as follows: command line options user-specific file system-wide file With that said, (and yes, I know, I could scour man ssh_config AND man ssh, and (hope) for documented…
mralexgray
  • 1,353
  • 3
  • 12
  • 29
42
votes
3 answers

Passing default answers to apt-get package install questions?

I'm trying to write a configuration script for new servers, and one of the first steps is to install a series of required packages, such as MySQL, phpMyAdmin, etc. using apt-get install However, when dpkg tries to configure them it asks you for a…
Tarka
  • 525
  • 1
  • 4
  • 9
41
votes
5 answers

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 only way manually verifying the contents of the file…
JuanPablo
  • 913
  • 3
  • 10
  • 21
39
votes
2 answers

Comments in OpenVPN client config files?

Is it possible to put comments in the client config files (those in the path specified by "client-config-dir") for OpenVPN, i.e. something beginning with "#" or "//" or the like? If so, what is the appropriate comment character?
Doktor J
  • 1,107
  • 1
  • 10
  • 20
38
votes
7 answers

Linux: how to restore config file using apt-get/aptitude?

I've occasionally lost my config file "/etc/mysql/my.cnf", and want to restore it. The file belongs to package mysql-common which is needed for some vital functionality so I can't just purge && install it: the dependencies would be also uninstalled…
kolypto
  • 11,058
  • 12
  • 54
  • 66
36
votes
3 answers

How to stop Remote Desktop from closing my session due to inactivity?

I'm connecting from a windows vista desktop to a server running windows server 2003. I'm using Remote Desktop and I'm running some very long running processes on the remote server. My problem is that Remote Desktop logs out my session and terminates…
Robin
  • 817
  • 3
  • 11
  • 20
34
votes
3 answers

How to totally remove a certbot-created SSL certificate?

I use Ubuntu 16.04 with Nginx and I've installed Nginx Certbot on my operating system (Ubuntu 16.04) with: apt-get update -y add-apt-repository ppa:certbot/certbot -y apt-get update -y apt-get upgrade python-certbot-nginx -y I setted Nginx…
Arcticooling
  • 1
  • 3
  • 7
  • 22
32
votes
6 answers

Automatically Configure New Computers

My company is in the process of upgrading all of our users from old Windows XP computers to newer quad-core Win7 computers. This is a good thing - it's long overdue that we upgrade our workstations - but I now spend a ton of time configuring new…
jwegner
  • 493
  • 5
  • 10
32
votes
5 answers

Nginx set_real_ip_from AWS ELB load balancer address

I have a set of Nginx servers behind an Amazon ELB load balancer. I am using set_real_ip (from the HttpRealIpModule) so that I can access the originating client IP address on these servers (for passing through to php-fpm and for use in the…
vitch
  • 630
  • 2
  • 8
  • 10
29
votes
6 answers

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 created, I have to go through the hassle of…
gsgx
  • 392
  • 1
  • 3
  • 6