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
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
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
9k views

Nginx. Server directive inheritance.

Is there any way to reduce construction like: server { server_name regular_site; location /api/ { proxy_pass 127.0.0.1:5000; } location / { proxy_pass 127.0.0.1:3000; } } ...
Nikolay Fominyh's user avatar
11 votes
3 answers
42k views

Setup IIS 7.5 with multiple website bindings and SSL?

On IIS 7.5 I am trying to achieve this with two websites: Default Web Site is bound to: (blank host header port 80 - http) (blank host header port 443 - https) go.example.com www71.example.com the ...
JK01's user avatar
  • 338
11 votes
2 answers
7k views

ElasticBeanstalk: Set instance type and security group from config file

I'm having trouble defining instance type and security groups through .ebextensions/*.config files in the root of my application bundle. Briefly, I have two config files that look like this: ....
Josh Hunt's user avatar
  • 570
11 votes
1 answer
74k 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
1 answer
24k views

Setting php values in php-fpm confs instead of php.ini

I'd like to set values in php-fpm conf files what are normally set in php.ini. I'm using nginx. I've created the following setting, but I'm not sure if this would work. php_value[memory_limit] = 96M ...
hyperknot's user avatar
  • 721
11 votes
4 answers
7k views

Why is IIS 7 is ignoring certain (but not all) MIME types for compression? Giving error: DYNAMIC_COMPRESSION_NOT_SUCCESS - Reason 12

So, I'm a bit of an IIS7 n00b but I've used most of the old IIS systems going back to 3. I'm trying to turn on dynamic compression and it's working, mostly. It doesn't work for my ADO.Net Data ...
Peter Oehlert's user avatar
11 votes
1 answer
13k views

Does the ``-'' sign have meaning in rsyslog.conf

Rsyslog is backwards-compatible with Syslog configuration files. The syslog.conf man page has: You may prefix each entry with the minus ``-'' sign to omit syncing the file after every logging. ...
Aleksandr Levchuk's user avatar
11 votes
1 answer
7k views

IIS server: how to dump IIS configuration into a single file

How to export/import configuration of my IIS server into/from a single file? The reason is that I want to put the configuration under version control system to track changes made by admins. Sultan
sultan's user avatar
  • 287
11 votes
3 answers
48k views

How do I get ubuntu to reconfigure /etc/network/interfaces for me?

How do I get Ubuntu to figure out the interfaces available on my computer and generate a new /etc/network/interfaces file? It created it the first time so I know it can somehow. Is there something ...
Sionide21's user avatar
  • 1,553
11 votes
1 answer
7k views

How to do docker-compose down without the config file that made the up?

When you do docker-compose up, it's based on a docker-compose.yml file. This usually brings up a network, builds and runs multiple services. If you do the up with the -d flag, the docker-compose ...
Xavi Montero's user avatar
10 votes
3 answers
9k views

After enabling HTTPS on my Apache2 server - I get 404 errors on every request [closed]

Okay, so I've had no experience with SSL/HTTPS ever before, I've only ever dealt with standard HTTP. Recently I've started work on a site which will need SSL. So of course, I've gone out and ...
Michael Longhurst's user avatar
10 votes
4 answers
23k views

How do I set up per-site php.ini files on a LAMP server using NameVirtualHosts?

I have a LAMP server serving a number of different websites using NameVirtualHosts. Until recently having a global php.ini file has been just fine, but recently one of our developers has requested ...
Brent 's user avatar
  • 23.3k
10 votes
2 answers
4k views

Getting a 404 error after upgrading to ASP.NET 4.5

I recently upgraded my web app to .NET 4.5. After pushing the code to our testing environment, I get a "404 - File or directory not found." error. The code runs fine from my VS2013 desktop. The web ...
jbonwell's user avatar
  • 211
10 votes
7 answers
77k views

Postfix Configuration problem (domain of sender address does not exist)

I am setting up a linux server that I want to send mail independently of our main mailserver (ie. directly). The problem is, when I send mail to an external address, it bounces with the message ...
Brent 's user avatar
  • 23.3k
10 votes
6 answers
5k views

Linux/UNIX Server Setup Practices for /tmp

Based on what you all see out there what is a recommended configuration of /tmp on a server system and why. I've had discussions on these points over the years sometimes with basic disagreements. ...
mdpc's user avatar
  • 11.9k
10 votes
2 answers
13k views

Where are zfs settings written?

On FreeBSD 10.0, when one creates zfs partitions and configures where they are mounted (permissions, etc.), where is this information stored? /etc/fstab is largely empty. i.e.: $ zfs mount zpool0/...
ericx's user avatar
  • 436
10 votes
5 answers
47k views

Is it safe to open port 3306 in Firewall for external MySQL Connection

I want to connect to a MySQL DB that is hosted with an ISP using something like TOAD, Navicat or HeidiSQL. I was told by the ISP that MySQL is listening on port 3306 but the hardware firewall is not ...
Don's user avatar
  • 213
10 votes
6 answers
10k views

Inconsistent trailing slash in DOCUMENT_ROOT variable in PHP when using Apache

In different server environments, the PHP $_SERVER['DOCUMENT_ROOT'] super global sometimes has a trailing slash and sometimes it does not. I would have thought this issue is directly related to how ...
Tom's user avatar
  • 4,367
10 votes
1 answer
38k 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
10 votes
4 answers
20k views

Why cache static files with Varnish, why not pass

I have a system runnning nginx / php-fpm / varnish / wordpress and amazon s3. Now I have looked at a lot of configuration files while setting up the system, and in all of them I found something like ...
Saif Bechan's user avatar
10 votes
3 answers
7k views

Managing iptables with Puppet

The idea of managing our iptables rules with Puppet has been brought up. I see that augeas has an iptables lense but it is currently experimental. Does anyone have any suggestions as to how to handle ...
Belmin Fernandez's user avatar
10 votes
2 answers
14k views

Apache redirect and set cache headers?

Doing a redirect in Apache is easy (mod_alias): RedirectMatch ^.*$ http://portal.example.com/ Setting cache headers is equally easy: Header set Cache-Control max-age=0 Header set Expires "Thu, 01 ...
Jakob Borg's user avatar
  • 1,463
10 votes
2 answers
25k views

Custom fail2ban Filter for phpMyadmin bruteforce attempts

In my quest to block excessive failed phpMyAdmin login attempts with fail2ban, I've created a script that logs said failed attempts to a file: /var/log/phpmyadmin_auth.log Custom log The format of ...
Michael Robinson's user avatar
10 votes
1 answer
5k views

apache on centos 5.6 gives me permissions denied error

I'm running apache on centos 5.6 and whenever i try to load a php script in any directory, other than /var/www/html (the apache default root dir) it gives me a permissions denied error. However when ...
koeder's user avatar
  • 223
10 votes
5 answers
125k 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
2 answers
1k views

Viewing complete computed Apache httpd configuration?

Is there a command / tool to generate the computed configuration that Apache httpd is using? I know I can manually go through the httpd.conf and other configuration files, but is there a standard tool ...
jamiebarrow's user avatar
10 votes
1 answer
50k views

OpenVPN Error : TLS Error: local/remote TLS keys are out of sync: [AF_INET]

Fist off thanks for reading this, I appreciate any and all suggestions. I am having some serious problems reconnecting to my OpenVPN client using Riseup.net's VPN. I have spent a few days banging my ...
Lucidity's user avatar
  • 103
9 votes
2 answers
23k views

Php.ini disable "Scan this dir for additional .ini files"?

I want to lock my php configuration and disable loading other php configurations rather than the default (which in my case is located at /usr/local/php/lib/php.ini) I want to disable the "Scan this ...
tftd's user avatar
  • 1,540
9 votes
3 answers
22k views

Wireguard Client Addition without restart

I am building a Wireguard VPN network, in which I want to add and remove peers on the server without restarting the service or losing connections with existing peers. Tried searching for the results, ...
Anton2319's user avatar
9 votes
8 answers
24k views

Nginx phpmyadmin redirecting to / instead of /phpmyadmin upon login

I am having issues with my phpmyadmin on my nginx install. When I enter <ServerIP>/phpmyadmin and logs in, I get redirected to <ServerIP>/index.php?<tokenstuff> instead of <...
Frederik's user avatar
  • 3,387
9 votes
2 answers
27k views

Nginx Site Config Templates and Variables

Hi I am looking to set up a simple nginx config, I read you can set variables using set $variable content; but so far I've had no luck... Below is what I have come up with so far/what I am trying to ...
Alexander Holman's user avatar
9 votes
1 answer
14k views

Apache 2.2 redirect all but one directory

I have this in my httpd.conf file: <VirtualHost IP.AD.DR.ESS:80> ServerName example.com Redirect Permanent / https://example.net/ </VirtualHost> This is successfully redirecting ...
FKEinternet's user avatar
9 votes
4 answers
4k views

How many domains on a single Apache server?

I'm hosting about 300 domains for my clients on a single Apache server. They all don't have much traffic, so the server load is not a problem. Theoretically there should be no limit how many of such ...
Gene Vincent's user avatar
9 votes
2 answers
20k views

nginx serving alternate location on 404

I'm trying to set up an nginx config as follows: When receiving a request like /tile/SteveCountryVic/1/2/3.png: Attempt to pass it through to http://localhost:5005/1/2/3.png If that 404s, pass it to ...
Steve Bennett's user avatar
9 votes
3 answers
65k views

AH01071: Got error 'Primary script unknown\n' apache2.4 php-fpm7.2

I seem to be getting these lines in my /var/log/apache2/error.log and the corresponding records in /var/log/apache2/access.log /var/log/apache2/error.log [Fri Sep 20 02:28:36.654357 2019] [...
Dan's user avatar
  • 195
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
9 votes
4 answers
7k views

Debian - What to do when upgrading packages and a config file has changes?

I'm new to system administration and I'm helping admin a server for a student group. I was wondering, what is the best practice for when you're upgrading packages and a config file has changes. I've ...
Ibrahim's user avatar
  • 394
9 votes
1 answer
10k views

Can someone explain nginx conditional flags? (-f, -d, -e, etc)

I'm in the process of migrating from Apache to nginx and have used http://winginx.com/en/htaccess to migrate the rewrite rules. I'm trying to understand what the translated ones mean though and I can'...
Nathaniel Schweinberg's user avatar
9 votes
1 answer
8k views

proxy pass based on query parameters in nginx

Is there a way to proxy pass based on query parameters? I need to proxy pass root url request to server A. But, if root url has certain query parameters i need to proxy pass to server B. How can i ...
abc's user avatar
  • 93
9 votes
1 answer
17k views

adding a global URI prefix for Tomcat web apps

I am setting up a reverse proxy configuration where all requests whose path starts with '/apps/' should be proxied by Apache to Tomcat. This IMO has 2 benefits: it makes it possible to reserve ...
rvdb's user avatar
  • 329
9 votes
2 answers
6k views

IIS 7.5 (Express) applicationhost.config: Can a virtualDirectory's physicalPath be a relative path?

I'm configuring a site in applicationhost.config for IIS 7.5 Express: <site name="default" id="1" serverAutoStart="true"> <application path="/"> <virtualDirectory path="/" ...
stakx's user avatar
  • 195
9 votes
4 answers
35k views

OpenWrt Configuring Tagged and Untagged VLAN on the Same Port

I have installed OpenWrt on a MikroTik Routerboard RB750UP (AR7240 CPU with AR9330 built in switch). I have included additional details below, but my question is: How do I configure an untagged and ...
user173470's user avatar
9 votes
4 answers
5k views

How to set up Cobbler with Puppet or Cfengine?

I've heard a lot about using Cobbler together with Puppet/Cfengine for rapid deployment & configuration. Can you point me to some tutorials or share you experience of how you do it? Would also ...
Continuation's user avatar
  • 3,130
9 votes
2 answers
2k views

Exim 4.71 does not add DKIM signature to outgoing emails

I am trying to add DKIM to my domain, I have created a key, added the following to /etc/exim4/conf.d/transport/30_exim4_config_remote_smtp: dkim_domain = mydomain.com dkim_selector = mail1 ...
firedev's user avatar
  • 191
8 votes
2 answers
21k views

Using nginx try_files with multiple directory trees

I'd like to have nginx handle requests to a specific directory by checking to see if that path/file exists in several separate directories. For example, if my directory root had the following: images/...
djsumdog's user avatar
  • 1,120
8 votes
2 answers
21k views

apache2: why <LimitExcept> parameter results “deny not allowed here” error in virtualhost tag?

I have asked the same question to stackoverflow but then I thought it might be more related to here. in apache's httpd.conf between VirtualHost tags I put <LimitExcept> expression like follows: ...
destan's user avatar
  • 179
8 votes
2 answers
48k views

Postfix is rejecting some incoming emails ("Client host rejected: cannot find your hostname")

Our postfix sometimes rejects emails. I see this error in our postfix log (/var/log/mail.log): Feb 9 16:16:33 sd-15xxx postfix/smtpd[1972]: NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 ...
user avatar
8 votes
3 answers
20k views

IIS 7.5 Unable to write configuration file

I have a fault regarding IIS 7.5 on Win Server 2008 R2, whenever I try to change any site bindings or start an application pool I get the error below: Filename: \\?\C:\Windows\system32\inetsrv\config\...
flumeware's user avatar

1 2
3
4 5
55