Apache :: Multiple NICs And DHCP - How To Force Listener To IP
May 28, 2013
I have apache installed on a box with 2 nics. I've seen how to force the listener to an IP, but the issue is that this box uses DHCP. Is it possible to lock the listener to a network/subnet or to a specific NIC?
My company currently have some spam filtering problem with mailscanner and the Windows team was given a project to come up with a better solution to fight spams.
I work in Unix dept. I suggested to Windows admin I use ASSP personally and works great. I gave them the specs on my setups. Since the current front-end proxy is on RHEL, we all settled to try out ASSP on Ubuntu based server.
We scrap-find an older Dell PE 2850 we can use. I finally convinced company to deploy OpenVZ, this will be our first OpenVZ server public facing.
The Dell have two Intel 82541GI Gigabit NICs. We are VLAN-ing on Cisco switch level; eth0 will be on internal 10.0 network and eth1 on public port.
I already installed CentOS 5.2 plus HyperVM. I configured and brought up eth1 without TCP/IP, just on layer 2. Looks like OpenVZ is using eth0 right now.
For this new proxy, will be routing traffics through host eth1. What's the best way of going with this? The new proxy will be using veth so it will have its own MAC (for security reasons; and network team said this is mandatory).
Should I be using bridging? Or simple routing guests through VZ configured eth1 would work? Can anyone give me some ideas? I'm asking in WHT is because a lot of hosting companies probably have this setup already. I'm just absorbing ideas...
We are struggling to configure our Apache reverse proxy (on WIN 2008) server to force https.
We have the cert installed on the proxy server, and it seems to be working but we are unable to force connections to https: and the site is still available via http:
How do you enforce https on the site?
reading read about the .htaccess file, virtual hosts but still having a hell of a time putting it all together
My issue is with my code I have it rewwrites my addon domains to the main domain. I have a addon domain exclusion line. But each time I add a domain I have to go in and edit the htaccess. I foresee lots of addon domains in my future.
Depending on where u are at on my site (documents pages, training, main root, etc.) will depend on which type of background, footer, header and the like you'll get. Now I was thinking. Is there a way to have multiple error messages for more then one page depending on where you are at on a site? Right now it's intranet site and a modded snitz forum. What is the code and were does it go and in which apache conf file(s) does it go in?
I have some instructions written in the .htaccess of root directory for my website. So how to force those rules to apply to all sub directories even if those sub directories have .htaccess that overwrite the rules of the mother .htaccess on the root directory ? For example the root .htaccess deny access to all *.log files, so how to force that rule even if in some subdirectories there is some .htaccess files that allow access of *.log files.
for a project i'm setting up a WDS server for rapid deployment of Windows 2008 servers. The information regarding WDS and automated deployments is clear for me.
The only, and probably biggest problem is how to configure the linux dhcp/pxe server to able to boot an image from the WDS to start the installation.
Unfortunately I haven't found much information about it.
I hope some one here can push me in the right direction.
I'm currently working on a little project to get a rescue image loaded through PXE. It shouldn't be that difficult, but personally I don't really work with DHCP (obviously we usually just use static IPs), and DHCP is required for PXE.
I've setup the PXE host server and it's also running DHCPd without errors. This is the configuration of dhcpd.conf:
subnet x.x.x.0 netmask 255.255.255.0 { range x.x.x.155 x.x.x.159; option broadcast-address x.x.x.255; option routers x.x.x.1; next-server x.x.x.153; filename "pxelinux.0"; max-lease-time 100; default-lease-time 100; } (I have replaced the first three numbers of the IPs with x.x.x for privacy reasons)
That configuration seems fine.. Now the problem is that when I try to get a server to boot with PXE, after a minute or so, it reports that it hasn't received any DHCP offers.
Some side information: both the host and client server are on the same network, but not on the same switch though. I guess that shouldn't matter, or does it?
I follow instruction from redhat to setup my Centos acts like a router. When i setup the dhcp server, at the end when i start the dhcp, it keeps getting me the failed error. So i believe that i need to use 'touch' command for first time start dhcp server but seem that no such file or directory for dhcpd.leases.
Quote:
[root@localhost dhcp-3.0.5]# touch /var/lib/dhcp/dhcpd.leases touch: cannot touch `/var/lib/dhcp/dhcpd.leases': No such file or directory
I'm using XEN to setup my VPS. The installation have no problem for the first two server. On the 3rd server, I install using DHCP IP and it's ok.The problem is when I change the DHCP IP to static IP .
Using Centos 5.2, I'm using vi to edit /etc/sysconfig/network-scripts/ifcfg-eth0 and restart the network service network restart, the IP change, but outside or other static IP VPS network can't ping to this server.
I've tried to change the /etc/xen/the-host-config to include the IP . the results is still the same. Is there some script or way I can use to bridge this new 3rd server to the Xen host ant other network?
some gigabit NICs for server upgrading. Will use with CentOS (mixed of 32, 64 bits, centOS 4-5) on PCI slot. Which brand do you suggest? I don't want to face to compatibility issue
I read WHT quite a bit and I'd rather not weigh in on any provider issues with a 1 post count, so I'll ask a generic question of my own.
Is there any particular reason that Windows Updates seem to periodically cause network inaccessibility? Particularly with our PD-SMI+ boards I notice patch days bring at least 10 boxes down. No known solution other than to leave settings identical, disable, then enable the network adapters.
<IfModule worker.c> StartServers 100 MaxClients 500 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 100 </IfModule> Here is what is in the /var/log/httpd/error_log file before it dies:
Code: [Wed Jul 01 18:06:32 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 98 idle, and 108 total children [Wed Jul 01 18:08:17 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 74 idle, and 76 total children [Wed Jul 01 18:08:18 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 63 idle, and 63 total children [Wed Jul 01 18:08:19 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 79 idle, and 79 total children [Wed Jul 01 18:11:36 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 93 idle, and 108 total children
Our servers has been updated recently and my site is not working properly. It was working before the server change. When I click on the links, it doesn't update correctly, instead it gets the last cached data. I have to refresh each link for it to update which shouldn't be the case. I'm a front-end and have no access to servers. Could this be server-related?
I very much like the "readme.txt" that Apache appends to the directory listings. That is, when a browser GETs a directory, the text in that file is put underneath the list of files therein.
I am completely new to apache and I had the load balancer set up for a single domain that was working perfectly fine, but when it came to multiple domains i couldn't, for the life of me, figure out what to do.
There is example.com sub.example.com and otherexample.com
I had a single node set up for this but I want to experiment with the balancer. I have scratched Google and I only found broken info which couldn't explain much to me. Here are my domains
I inherited an Apache HTTP instance from a colleague. That's why I'm not deep into that stuff. My current scenario is the following: We are running several backend instances which are published to the internet via Apache HTTP Server which is configured as Reverse Proxy (RP). In the past there was only one port and one protocol to handle by the Apache HTTP (RP).
Now I have the following need. There has to be published a Web Service from one instance using two Ports with two protocols (HTTP and HTTPs). I'm not sure how to solve that need.
A solution I tried already was to change and add the variable DEF_BACKEND_PORT to DEF_BACKEND_PORT_1 and DEF_BACKEND_PORT_2 but it didn't worked.
I'm kinda new to apache and I have the following situation.
I have a vps, on which I have set the following:
WordPress Site A, has it's own VirtualHost and domain WordPress Site B, has it's own VirtualHost and domain Canvas LMS (not connected to a domain). Canvas LMS can add multiple accounts, which may (or may not) be accessed individually using a URL that looks as follows:
{canvas_root}/accounts/{account_id}/
For example : http://....../accounts/4/
I need to add a link to each of WP sites, which points to each site's account on Canvas, such that it appears as .../learning/ folder
I do not want the users to see the /account/4/ , just /learning/ I also want to prevent accessing Canvas LMS is located beyond the website's DocumentRoot I want this to work with both HTTP and HTTPS
Are there particular version of mysql or apache that are best suited when you want to utilize a multi-core/multi-cpu system? For example, we are currently using apache 1.3 and am not sure if it has the inherent ability to use multiple cpus to its benefit.
Or would the fact that it spawns child processes take advantage as the processes will be spawned on the different CPUs?
I need to configure multiple Apache Web Servers on redhat server. I have copied and extracted Apache 2.2 into redhat server and extracted but not able to install because I don't understand setting prefix. Please let me explain about prefix configuration and how to set it. At the same time I would like to know is it possible to setup 4 Apache Web Servers on same machine if possible then how to. Can we set up different versions of Apache HTTP Servers?
I'm trying to get multiple GUN groups to have access to certain directories.
Access to transport, delete
When you go to access transport or delete you get prompted for user name and password when entered you get in. However when I add GUNtest10 in the required ldap group. It doesnt accept your user name and password.
######ACL Directives######
LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so <Directory /bills/> AuthType Basic AuthBasicProvider ldap AuthName "1Login with your Windows ID and password"
sitea.com was pointing to /home/me/public_html/sitea
siteb.com was pointing to /home/me/public_html/siteb
On my new server, I have root permissions and used Plesk to create two domains sitea.com and siteb.com . Now plesk asks for a user to be created for each domain, so created usera and userb for sitea and siteb respectively.
Now as root on my server I created the dir /home/me/ and untarred the whole backup from old server to new server and I have dirs :
/home/me/public_html/sitea and /home/me/public_html/siteb
In apache configuration in file: httpd.include_sitea under dir /var/www/vhosts/sitea.com/conf/httpd.include
I changed the document root to /home/me/public_html/sitea
So I thought I am all set. But it does not work. When I try sitea.com in the browser it works but for all subdirs, for eg sitea.com/images it says Access denied.
This is because the dirs I created are owned by root.
So the owner of /home/me/public_html/sitea needs to be usera for this to work ?
Again for siteb to work I need to change the owner of /home/me/public_html/siteb to userb ?
This will be painful ? At least I should be able to change the owner of /home/me/public_html/ to one owner and ensure all sites under that work fine. How do I do that ?
I think the problem is clear by now. Its that I want all my sites to work off from .../public_html/ sub dirs.