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
61 votes
8 answers
8k views

Why would I need a firewall if my server is well configured?

I admin a handful of cloud-based (VPS) servers for the company I work for. The servers are minimal ubuntu installs that run bits of LAMP stacks / inbound data collection (rsync). The data is large ...
Aitch's user avatar
  • 1,179
32 votes
6 answers
8k views

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 - ...
jwegner's user avatar
  • 493
17 votes
3 answers
9k views

How to fetch ./configure parameters used at last time?

I am upgrading LAMP stack on customer's server and need to ./configure mysql and apache with exact last settings they were compiled with last time. Where do I get these? PHP configure string can be ...
Vladislav Rastrusny's user avatar
313 votes
8 answers
786k views

How to bind MySQL server to more than one IP address?

Is there a secret way to bind MySQL to more than one IP address? As far as I can see the bind-address parameter in the my.cnf does not support more than one IP and you can't have it more than once.
BlaM's user avatar
  • 3,936
110 votes
7 answers
28k views

How can the little guys effectively learn and use Puppet? [closed]

Six months ago, in our not-for-profit project we decided to start migrating our system management to a Puppet-controlled environment because we are expecting our number of servers to grow ...
drumfire's user avatar
  • 1,709
21 votes
2 answers
79k views

nginx rewrite for an url with parameters

I have an URL of this type: http://www.example.com/?param1=val1&param2=&param3=val3&param4=val4&param5=val5 And I want to redirect it to this one: http://www.example.com/newparam/...
David Morales's user avatar
19 votes
4 answers
14k views

Nginx includes config files not in order?

Is the order in which Nginx includes configuration files fixed, or random? Apache explicitly states wildcard characters are expanded in alphabetical order. With Nginx it seems this does not apply, and ...
Jan Fabry's user avatar
  • 1,006
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
223 votes
13 answers
83k views

Any benefit or detriment from removing a pagefile on an 8 GB RAM machine?

I'm running Windows 7 on a dual core, x64 AMD with 8 GB RAM. Do I even need a page file? Will removing it help or hurt performance? Would it make a difference if this is a server or a desktop? ...
Jason's user avatar
  • 3,287
54 votes
2 answers
10k views

Why do I have to edit /etc/sudoers with visudo?

I've noticed that the sudoers file and cron config files act in a special way compared to other config files on Linux. They need to be edited with a special wrapper rather than any text editor. Why is ...
Brian Lyttle's user avatar
  • 1,757
38 votes
7 answers
66k views

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 &&...
kolypto's user avatar
  • 11.2k
26 votes
1 answer
29k views

How to rotate log based on an interval unless log exceeds a certain size?

From the man page of logrotate: minsize size Log files are rotated when they grow bigger than size bytes, but not before the additionally specified time interval (daily, weekly, monthly, or ...
Question Overflow's user avatar
20 votes
8 answers
104k views

How do I disable SSLv3 support in Apache Tomcat?

I am trying to reconfigure my Apache Tomcat server to only use TLSv1. However, it is still falling back to SSLv3 using certain browsers. I setup the <connector> tag with the following settings: ...
rmiesen's user avatar
  • 302
15 votes
7 answers
20k views

SQL Server Files Local or NAS or SAN?

I have to install a new Server with SQL Server 2008, What do you recommend, One server with Raid 10 or the Files in a NAS? What about iSCSI should I use it? What about SAN? The server has 4Gb of ...
Jedi Master Spooky's user avatar
12 votes
4 answers
68k views

How to configure a real domain name for sender address

I tried to sending out an email using php mail() function but it failed somehow, complaining that a real domain name is required. The following is observed in the maillog: sendmail 4984 r25984: ...
Question Overflow's user avatar
12 votes
2 answers
21k views

How to ignore a set of Mac addresses in dhcpd.conf?

Is it possible in dhcpd.conf to ignore requests from a set of MAC addresses? Something like this: host vminstances { hardware ethernet d0:0d:*; ignore booting; }
Roberto Aloi's user avatar
11 votes
5 answers
16k views

Outgoing only SMTP server

I want to setup an outgoing only SMTP server on Debian, so my Web-applications will be able to send e-mails via it. I don't want to use another hosts because of security and customizability of my own ...
Daniel O'Hara'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
6 votes
1 answer
10k views

Load balancing in Nginx with redirect rather than proxy

I want to use Nginx in a bit of an unconventional way. I want to load balance between a few servers, but rather than proxy content for those servers I want to redirect to them. That is, if a ...
Brad's user avatar
  • 1,427
4 votes
3 answers
16k views

IIS Configuration Synchronization for Web Server Farm?

I'm wondering if there is any good/easy way to get the IIS configurations synchronized? I'm going to be setting up a pair of IIS Servers with Network Load Balancing. I can get the data files (html, ...
Nate's user avatar
  • 2,161
216 votes
5 answers
211k views

Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?

I have some experience using linux but none using nginx. I have been tasked with researching load-balancing options for an application server. I have used apt-get to install nginx and all seems ...
Seth Spearman's user avatar
48 votes
2 answers
77k views

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....
oliverjkb's user avatar
  • 614
45 votes
1 answer
48k views

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 ...
Jürgen Paul's user avatar
  • 1,275
43 votes
1 answer
90k views

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 ...
user65567's user avatar
  • 671
33 votes
5 answers
49k views

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 ...
vitch's user avatar
  • 640
22 votes
3 answers
17k views

What is needed to use anycast IPs?

So, there're a bunch of questions on SF about the uses and how anycast IPs are cool. My approach is something more practical. What specifically I need to have to use one of those addresses? Do I need ...
coredump's user avatar
  • 12.8k
20 votes
1 answer
10k views

Splitting long lines in a nginx configuration file

In order to not pass garbage to the back-end, I have a strict regex for a location directive. It looks like this: location ^~ "/(some|stuff|more|bar|etc(-testing)?)/[a-zA-Z0-9]+/...(more|restrict)....
Lekensteyn's user avatar
  • 6,301
16 votes
5 answers
36k views

Is there a way to use the Autodiscover feature without Exchange?

The autodiscover method used by Exchange looks great. However I do not have Exchange. It looks like when setting up a mail account the device/mail client looks for a autodiscover.xml file. Is there ...
SamK's user avatar
  • 1,366
13 votes
5 answers
120k views

nginx config fails with SSL key/pem (unique case)

I am trying to install SSL on my nginx reverse proxy with certified ssl keys but i get this message when i try to restart server: Restarting nginx: [emerg]: SSL_CTX_use_PrivateKey_file("/etc/nginx/...
Fredow's user avatar
  • 143
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
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
8 votes
3 answers
14k views

Understanding exim configuration files on Debian/Ubuntu

I want to understand what's going on with this Exim configuration directory. In /etc/exim4, there's: * exim4.conf.template * update-exim4.conf.conf * conf.d The conf.d has a mess of directories and ...
bobobobo's user avatar
  • 799
7 votes
4 answers
11k views

How to make spamassasin reject mail based on score?

I am running Linux with Postfix, Dovecot, Postgrey and spamassasin/spamd. This is my main.cf smtpd_recipient_restrictions = permit_sasl_authenticated, ...
Van Nguyen's user avatar
6 votes
4 answers
12k views

Why won't MariaDB start after upgrade (NO_NEW_PRIVILEGES)

After upgrade of my debian(testing, jessie to stretch) server on DigitalOcean, MariaDB won't start with service mariadb start. I tried to purge all mariadb-* and mysql-* packages, delete configs and ...
Spikolynn's user avatar
  • 245
5 votes
2 answers
8k views

OpenVPN bad source address from client

I have one problem with OpenVPN. There are a lot drops records in the openvpn log file on the server: Mon Oct 22 10:14:41 2012 us=726541 laptop/ххх:1194 MULTI: bad source address from client [192.168....
Klesk's user avatar
  • 81
5 votes
3 answers
33k views

How to switch proxy settings via script?

There are a number of users in our organization that use their laptops on multiple networks. Each network has its own proxy setting requirements for accessing the Internet and currently, the users ...
Jeff Yates's user avatar
4 votes
5 answers
3k views

Can't get PHP to stop showing errors

Contrary to most people's problem I cannot get PHP to stop showing errors, I have in my php.ini display_errors set to off but it still shows them, I have also tried .htaccess, and inline ini_set and ...
unknowndomain's user avatar
4 votes
4 answers
7k views

Multiple domains (including www-"subdomain") on apache?

after messing around a while I decided to ask here: I have a vhost and want to use 2 domains on this server. My apache configuration file looks something like this: NameVirtualHost * <VirtualHost ...
TheHippo's user avatar
  • 236
2 votes
2 answers
3k views

SQL Server Remote Connections

I am at my wits end with trying to access a remote SQL Server 2008 R2 Express instance. Here are the following that I have tried. 1) I enabled remote connections in the instance properties. 2) I ...
Barry's user avatar
  • 185
2 votes
2 answers
149 views

What do I have to configure on my server to increase security from default?

I am setting up a Windows 2003 machine to host a website, are there any settings that I should pay special attention to in regards to security? In other words, is there dangerous default setting I ...
juan's user avatar
  • 373
2 votes
1 answer
3k views

Multicast accross the subnets

My application sends some UDP packets on a multicast address. In our office we have 3 subnets connected via routers. Sitting in my subnet I'm able to ping the IP of the other subnet. Will multicast ...
Muhammad Hasan Khan's user avatar
0 votes
1 answer
962 views

extend size of partition

I am asking for help on how to properly extend the size of partition Here is my situation. Running fdisk -l, give this result root@ ~]# fdisk -l Disk /dev/sda: 2000.3 GB, 2000398934016 bytes 255 ...
Jan Mark's user avatar
0 votes
3 answers
134 views

Selecting a webserver configuration

I have a website, which has grown from 10 visits per day, to 100 per day in couple of months, and now to about 800 unique visits per day. So far, I have been using a VPS with 512MB RAM, and shared ...
anon's user avatar
  • 1
0 votes
2 answers
720 views

How to configure php5 on apache2.2?

I want to configure PHP5 on apache2.2 server. I added LoadModule php5_module "c:/php/php5apache2_2.dll" AddHandler application/x-httpd-php.php # configure the path to php.ini #PHPIniDir "c:/php" ...
user avatar
-1 votes
2 answers
6k views

Do partitions needed to be unmounted when resizing a partition?

I have this article http://www.centos.org/docs/5/html/5.2/Deployment_Guide/s2-disk-storage-parted-resize-part.html which is not clear to me. And also someone told me that swap space does not need to ...
Jan Mark's user avatar
283 votes
7 answers
711k views

command for checking Apache configuration

I'm looking for a command that checks the validity of the config files in Apache server on both Debian and RHEL distros. I need to do this prior to restart, so there will be no downtime.
Sigtran's user avatar
  • 2,933
119 votes
4 answers
303k views

How to disable timeout for nginx?

On a local development machine, I have a nginx reverse proxy like so: server { listen 80; server_name myvirtualhost1.local; location / { proxy_pass http://127.0.0.1:8080; } server { ...
k0pernikus's user avatar
  • 4,360
57 votes
9 answers
95k views

How do I run a local bash script on remote machines via ssh?

I am looking for a way to push configuration from one central machine to several remote machines without the need to install anything on the remote machines. The aim is to do something like you ...
tremoloqui's user avatar
  • 1,333
52 votes
1 answer
237k views

nginx server directive is not allowed here

I know there are dupes of this out there, but I can't seem to solve this in my situation. I'm following an article on setting up nginx as reverse proxy with apache. And I get this error: nginx: [...
gideon's user avatar
  • 1,145
51 votes
2 answers
75k views

Redis Cluster: (error) MOVED

I have a Redis cluster with the following nodes: 192.168.0.14:6379 master (slots from 0 to 16383) 192.168.0.15:6379 slave (slots from 0 to 16383) 192.168.0.16:6379 master (without slots) ...
Oleksandr's user avatar
  • 763