Hot answers tagged config
43
Binding to 127.0.0.x won't make it available to all the devices, it will make it available locally only. If you wish to make it available to all the interfaces, you should use 0.0.0.0. If you wish to access it from more than one, but less than all the interfaces, you should bind to 0.0.0.0 and firewall off the interfaces you don't want to be accessed ...
7
No, you cannot. The page you link to clearly states:
The IP address to bind to. Only one address can be selected. If this option is specified multiple times, the last address given is used.
If no address or 0.0.0.0 is specified, the server listens on all interfaces.
7
Usually that comes from Selinux not giving access to the folder.
do
ls -alZ /var/www/
and if the html folder doesn't have the context system_u:object_r:httpd_sys_content_t, fix it with chcon
chcon -v -R --type=httpd_sys_content_t /var/www/html
http://wiki.centos.org/HowTos/SELinux
7
Normally what you would do is create a alias so you would have one IP bound to eth2 and one bound to eth2:1
You would configure your startup scripts as such
/etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
IPADDR=65.130.27.69
ONBOOT=yes
BOOTPROTO=static
BROADCAST= ... etc, etc.
/etc/sysconfig/network-scripts/ifcfg-eth2:1
DEVICE=eth2:1
...
4
Do you have any routing setup already between the boxes?
You could do the following..
Router 1(left Side of diagram)
interface FastEthernet0/1
ip address 192.168.56.253 255.255.255.252
no shut
ip route 192.168.55.1 255.255.255.255 192.168.56.254
Router 2(right side)
interface FastEthernet0/1
ip address 192.168.56.254 255.255.255.252
no ...
4
I realize this is an old post, but since it came up in a google search I was doing I figured I'd post some helpful information I found regarding this same error.
In some cases this error message is benign. For example, I was getting it in CentOS 5 but by proxy config was perfectly legitimate and worked just fine. You can view the discussion regarding this ...
4
You can run arbitrary ruby code, so this probably your best approach when it comes to Windows. Also the philosophies of UNIX-like OS and Windows are so fundamentally different that there's currently no point in using chef for Windows-based environments. Use the tools MS intends you to use like SCCM and SCOM - your results are going to be much better and ...
4
This behavior is by design.
Vagrant uses VirtualBox NAT mode which means using port forwarding.
You can't SSH directly to your VM using NAT mode.
Using 'vagrant ssh' means vagrant will do the port forwarding for you so you don't have to worry about it. I think it will connect to localhost on port 2222 by default but it will try to also sort out any port ...
3
Assuming no vtp, etc.:
vlan 10
vlan 20
int range FastEthernet0/0 - 23
switchport mode access
switchport access vlan 20
int FastEthernet0/24
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,20
int vlan10
ip address 10.10.25.10 255.255.255.0
3
Benchmark, benchmark, benchmark. That's the only solution. There are a million things that can make a website slow. Here's what I would do:
Load up Firefox with Firebug. Check the net panel for the loading times of your main request. If it gives a long time for "connecting", you may have network or bandwidth issues, or Apache cannot handle that many ...
3
There is an Apache module available which shows a detailled page with various settings and the active configuration.
mod_info is disabled by default and must be enabled with ./configure --enable-info when building Apache. On Debian and Ubuntu, this module and its configuration can be enabled using sudo a2enmod info.
Put the next lines in your configuration ...
3
If you want to eliminate the extra spaces, you can use the built-in function gsub. For example, you can add:
gsub(/ /, "", $1);
This will remove all spaces. If you want to remove spaces at the beginning or end of token, you can use
gsub(/^ /, "", $1);
gsub(/ $/, "", $1);
3
You are allowing Apache to spawn up to 1500 children to serve requests (ServerLimit / MaxClients) -- It's no wonder your server load (the number of processes waiting in the run queue) is getting enormous!
My first suggestions at 400 requests per second with the numbers you're quoting in your question would be "Move the MySQL server to its own box" or ...
3
You seem to miss the most important line:
auto xenbr0
iface xenbr0 inet static
bridge_ports eth0 eth4 eth7 # bridge traffic between these interfaces
bridge_stp no
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
man says:
If you need to specify the interfaces more flexibly, you can use
the following syntax ...
3
This seems to be your problem:
https://forums.openvpn.net/topic2445.html
(quote)"It looks like the 2000 max_clients setting is getting overridden in we_init and
getting set to WSA_MAXIMUM_WAIT_EVENTS, which is 64, minus 4. My understanding
is this is a hardcoded limit built into the windows kernel. The 60 client limit
is determined by subtracting ...
2
Apache comes in different flavours, two of the most common being prefork and worker. The prefork model spawns several processes but each process handles only one request at a time. The worker model, on the other hand, spawns several processes and each process has multiple threads, each thread handling one request at a time.
Depending on your distribution ...
2
The option you want is local_interfaces in the main part of the configuration. Section 13.1 of the spec gives some examples, and the full definitions of the option is in the alphabetical list of main options (which I can't directly link to because it doesn't have an anchor).
To summarize:
local_interfaces = 127.0.0.1
2
If you nslookup www.example.com and nslookup example.com do they both resolve to the same address? If so then you need to set up the host header for the www one on the server. If not you will need to set up the 'A' record first then sort out the host header if required.
2
I once had to deal with such a file, each time the company bought out another company they added their brands into the 1 BIG httpd.conf file, different brands had to be tested in different test environments. Our approach was:
Start with a new empty file and include only things that needed to be included. Keep it in a version control system if you have ...
2
If the current virtual disk is not on LVM than you cannot do this easily. In this case I would create the new desired situation (including LVM) next to the current disk and move the current data over during planned downtime. There is no easy way to do this live.
For scenarios just like this I always put LVM on my virtual disks, even if I don't expect future ...
2
Gawk accepts regular expressions as field delimiters. The following eliminates spaces around the equal sign, but preserves them in the rest of the line. Quotes are added around the value so those spaces, if any, are preserved when the Bash assignment is performed. I'm assuming that the section names will be numeric variables, but if you're using Bash 4, it ...
2
What is the average size of your httpd processes?
Run this command when the server is under load:
ps -ylC httpd --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'
That will tell you approximately the average size of an Apache process.
Your MaxClients is probably way too high.
2
show interface <intf_name> works fine... you just need to be sure you have gone into enable mode on the ASA, otherwise, it won't parse...
mpenning-fw# show interface Ethernet 0/0
Interface Ethernet0/0 "", is up, line protocol is up
Hardware is 88E6095, BW 100 Mbps, DLY 100 usec
Auto-Duplex(Full-duplex), Auto-Speed(100 Mbps)
Description: TIME ...
2
In my experience, port connection events show up in the console/ssh view without special configuration, although not necessarily with the level of detail you might be thinking.
debug switch iplm and debug switch manager both with the errors option give information specific to ports, but appear to be specific to PoE and VLAN events, which might not give you ...
2
This sounds like a problem best solved by DNS. Add this to your /etc/resolv.conf:
search domain.com
If a DNS lookup contains no dots1 or returns an NXDOMAIN response then another DNS lookup will be made with that search value appended.
Examples:
If you do ssh srv1, the DNS lookup will be made for srv1.domain.com.
If you do ssh srv1.dc1, the DNS lookup ...
2
grep -R AllowOverride /etc/apache2 : try to see if any active configuration file (in conf.d or sites-enabled) is not putting some restrictions on a parent directory of your webroot (for / it's ok, but if someone can put a restriction on /var/www/mysite). You can check the .htaccess is read by setting deny from all inside (you should get access denied)
2
I separate each virtual host into it's own vhost config file, that way you don't wind up searching through a giant document looking for one little directive. Similar to Quanta's post:
Include /etc/apache2/vhosts.d/*.conf
Just place it as the last line in your httpd.conf
then just split your single vhosts.conf into individual files for each domain, i.e.
...
2
Here are commands -
First of all you must enter in "enable" mode:
Router>enable
Router#
now enter in global configuration mode:
Router#config t
Router(config)#
Then you must configure interface:
Router(config)#interface (fastethernet, serial) 0/1 \ You didnt specificy which type of interface connects routers. Is this FastEthernet, Serial, Ethrnet...
...
2
Try checking the permissions on the folder that contains netdisco_apache.conf
You are right Apache should be able to access the file as it has the same permissions, but it might not be able to access the folder it is contained in.
If you don't want to change folder permissions, just move netdisco_apache.conf to the /etc/httpd/conf directory (remember to ...
2
If you're looking for a backup tool, you should use backup software - Chef is a configuration management tool, which approaches it from a different perspective.
Using config management, the configs are stored in the tool and pushed to the servers. Throw a server in the trash and put a new one in with the same name, and it should have its configs pushed to ...
Only top voted, non community-wiki answers of a minimum length are eligible