Apache :: Times Out When Multiple Vhosts Are In Place

Apr 21, 2015

when I had multiple (at least 5) vhosts set to Apache when it just hanged, this was fixed adding:

Code:
Acceptfilter http none
Acceptfilter https none

To my httpd.conf, but now it's not hanging, it just times out, I get no error, nothing in the error.log file, it just times out.

After doing a refresh, it comes back like nothing happened.

View 13 Replies


ADVERTISEMENT

Apache Keeps Stopping. MULTIPLE Times Per Day!

Jul 1, 2009

Apache keeps stopping. MULTIPLE times per day! There is no logic to when it dies. But about every 2 hours.

Load stays below .30 and there is free memory available.

This is on a VPS machine. None of the other VPS's are having an issue. Just this one.

Centos release 5.3 (Final)
Apache/2.2.3

Here is what is in the httpd.conf file. I realize the numbers are way too high, but just trying to get this issue to go away.

Code:
<IfModule prefork.c>
StartServers 100
MinSpareServers 100
MaxSpareServers 100
ServerLimit 512
MaxClients 512
MaxRequestsPerChild 4000
</IfModule>

<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

View 5 Replies View Related

Apache VHosts Error

Nov 13, 2007

I've been having some trouble with Apache 2.0 recently. Whenever I load somewhere between 200 and 230 virtual hosts into Apache's config (as per my hosting control panel), Apache will fail to restart when the command "apache2ctl restart" is run. The command "/etc/init.d/apache2 restart" fails as well. All it does is signal all child processes of Apache to be terminated and fail to start again.

Here's what the log has to say:

Code:
[Tue Nov 13 19:04:18 2007] [notice] SIGHUP received. Attempting to restart
[Tue Nov 13 19:04:18 2007] [notice] seg fault or similar nasty error detected in the parent process
Is it that Apache is too bloated with vhosts to restart or is it something else?

FYI, I'm running Debian 3.1 (Sarge).

View 10 Replies View Related

Apache 2.2 Can't Handle Vhosts

Mar 25, 2007

Either Apache 2.2 can't handle vhosts or I don't get apache anymore.

Have a look at the conf files (I stripped out all the commented lines):
httpd.conf

Code:
ServerRoot "/usr/local/apache2"

Listen 80

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module modules/libphp5.so

<IfModule !mpm_netware_module>
User apache
Group apache
</IfModule>

ServerAdmin you@example.com

DocumentRoot "/usr/local/apache2/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

<FilesMatch "^.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog logs/error_log

LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
</IfModule>

CustomLog logs/access_log common
</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
</IfModule>

Include conf/extra/httpd-vhosts.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
httpd-vhosts.conf

Code:
NameVirtualHost *:80

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin cs@reflexnetworks.net
DocumentRoot /home/reflextest/public_html
<Directory "/home/reflextest/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName test.reflexnetworks.net
ServerAlias www.test.reflexnetworks.net
ErrorLog logs/test.reflexnetworks.net-error_log
CustomLog logs/test.reflexnetworks.net-access_log common
</VirtualHost>
( xxx.xxx.xxx.xxx is the correct IP). The <Directory "/home/reflextest/public_html">...</Directory> part does not make any difference

Permissions:
Code:
ls -lR reflextest/
reflextest/:
total 4
drwxr-xr-x 2 reflextest apache 4096 Mar 25 04:50 public_html

reflextest/public_html:
total 4
-rw-r--r-- 1 reflextest apache 22 Mar 25 04:50 index.html
This is a source compile of apache. See for yourself: [url]

View 4 Replies View Related

Automatic Resetting A SUSE Server Multiple Times

Dec 12, 2008

How can I restart a SUSE server multiple times?

how to use Cron to restart the server every 5 minutes and then log the number of times this was done and output it to a file?

View 0 Replies View Related

Apache: Load Vhosts From MySQL Database

Jun 21, 2008

if it was possible to load vhosts from a MySQL database and the only solutions i found didnt work for me. Im running Apache on Windows. Has anyone seen anything that would work with Windows? The only alternative i can think of is to read the database info using PHP and output it to a vhosts config file. I dont want to do that though because it means restarting the server to load the new config and i hear that a lot of vhosts slows the server down

View 4 Replies View Related

Apache :: Setting Up Vhosts In Conf File

Mar 15, 2013

I work for a start up as well as do independent consulting. I had a friend set up my apache server initially for the start up. It's been running fine. Now I want to host a client's site on the same server. I tired just adding a vhost section at the bottom of the conf file, but it said that I was running two sites off the same port. I tried manipulating the stuff my buddy did for me for the first site, then putting two vhosts on the bottom, but that just didn't work.

View 5 Replies View Related

Apache :: Configure A Host To Use Vhosts But Server Keeps Breaking

Aug 29, 2013

I'm trying to configure a host to use vhosts but the server keeps breaking when I uncomment the Include vhosts file line. The apache process starts but none of the hostnames work. When the line is commented out, only the main hostname (defined in httpd.conf) works.

View 1 Replies View Related

Apache :: Multiple Error Codes For Multiple Pages

Nov 9, 2012

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?

View 1 Replies View Related

Apache Auto Restart Many Times

Nov 13, 2008

Apache service auto restart many times ( every minute ).

View 10 Replies View Related

Apache Handles Every Request 3 Times

Oct 21, 2007

New VPS, CentOS 4.5, Apache 2.0.52, Plesk 8.2.

Every request is getting processed 3 times. In other words, if I point my browser to the URL of an image hosted on this server, it generates 3 lines in the access log each time I refresh the page.

If I point it to a script which logs something to a file, it logs it 3 times, showing it's run all 3 times.

I haven't touched the httpd.conf or any other configuration. Any idea what could cause this?

View 4 Replies View Related

Mod_rewrite, Vhosts, And Errorlog

Nov 16, 2007

I tried searching the forums a bit and the Apache manual, but I was unable to find much related to my specific problem.

We have a system such that each user has a 'www' folder in their home directory so that example.com/~user will point to that folder. The user information, however, is not on the www server and instead we use a network file system to access the files in the home folder.

This all works fine and dandy with mod_rewrite. However, we want to allow each user to have access to the error logs, etc. for their own site. The best way to do this seems to simply store it in their home directory.

The problem is that how do you split these files apart. While it would be possible to have a separate process do it, the best way seems to just have each user be their own vhost. mod_vhost_alias seems to be applicable in this situation.

However, mod_vhost_alias relies on either the Host: field or the ip to split queries into their respective vhosts. As said before, our system uses the directory.

So the question is, is there a way to either use mod_rewrite to tell mod_vhost_alias what the vhost's name is. Or, is there a way to split the logs another way.

View 0 Replies View Related

Out Of File Handles Because Of ErrorLogs In Vhosts

Mar 16, 2008

I have hundreds of sites on a server running Plesk. When I try to add more, Apache refuses to start, because it is out of file handles.

It is out of file handles because Plesk includes a custom ErrorLog and CustomLog in every vhost config file it makes. I tried overriding them with a vhost.conf file, but am not sure how to unset set options. I also tried pointing all the same ErrorLogs to the same file, but that didn't seem to do anything.

Does anyone know how I can either log everything to a single file, or just shut off logging? I really never use logging, and it seems like it would save me progressing power and storage (not to mention file handles!) if I could just disable it.

View 5 Replies View Related

Plesk 12.x / Linux :: Vhosts On One Of Two IP Addresses

Dec 1, 2014

I have a Problem with my VHosts on one of two IP addresses. One IP is dedicated and works well

The other IP is shared. Since two days every call to one of the websites of this share ip goes to the Plesk Default Website. I tried to reconfigure single sites and all sites (/usr/local/psa/admin/bin/httpdmng --reconfigure-all), nothing works and restarting apache shows some warnings.

apache2ctl -S shows the following lines:

Code:

[Mon Dec 01 19:56:08 2014] [warn] VirtualHost 85.214.41.141:7080 overlaps with VirtualHost 85.214.41.141:7080, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Dec 01 19:56:08 2014] [warn] VirtualHost 85.214.41.141:7081 overlaps with VirtualHost 85.214.41.141:7081, the first has precedence, perhaps you need a NameVirtualHost directive

[Code] ....

In an other thread I found a possible solution for the overlapping vhosts. The problem there seems to be a missing ssl-certificate and that matches with the situation on my server. After copying any other certificate-file as the one with the missing filename the apache starts without any warnings, but after that all websites (the sites from the dedicated ip too) only shows the apache default site ("it works"). I Tried to reconfigure single sites and all sites (/usr/local/psa/admin/bin/httpdmng --reconfigure-all), nothing works.

The server is hosted by STRATO, so there are daily backups. I turned back one week (the problem exists since two days). Then for some hours all works fine but suddenly all the sites on the ip 85.214.41.141 get broken again and shows only plesks default page.

View 1 Replies View Related

Multiple Sites On Apache

Jul 8, 2007

Can i run multiple sites on apache? and if so how do i do it.

View 3 Replies View Related

Plesk 12.x / Linux :: Move Vhosts Error 403

Oct 30, 2014

We are using a server with Ubuntu 14.04 LTS and Plesk 12. When installing plesk, the vhosts directory is automatically created in /var/www/vhosts . Our problem is that /var is on a 120 GB SSD drive. We would like to move it to /data, which is a 2 TB drive. Whenever we used:

This KB-Article [URL] .... (exits with errors) this third-party documentation [URL] .... (Which is from a user who has the exact same problem with the same paths) all we get is ERROR 403 on our demo site. The site was created before the move and we also tried to create it after the move. The Plesk installation is fresh out of the box. There were absolutely no changes to the installation. Even the domain default or server default pages will not load anymore.

View 19 Replies View Related

Plesk 11.x / Windows :: VHosts - Panel Keep Resetting

Mar 12, 2014

From what I can tell the vhosts on my Plesk Panel keep resetting (I think around once a day), all my webstatistics (AWStats) begin to 404 and I have a Wordpress installed in the root of a domain which is now displaying the "Web Server's Default Page" (any sub-directory of the Wordpress install gives a 404 such as the wp-admin directory). The way I've fixed this temporarily is to run "%plesk_cli%

epair.exe" --update-vhosts-structure. I do not see any errors or warnings in the event viewer or log files.

On another note is there a way to increase the logging for event viewer to include more than just errors (such as informational) to make it easier to track down issues?

View 4 Replies View Related

Apache :: Multiple Server Redirection

Jul 16, 2015

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?

View 1 Replies View Related

Apache :: 2.4 - How To Configure Multiple Clusters

May 2, 2013

I wanted to configure 2 clusters on Apache 2.4. Here are my sample configurations

Cluster 1 config:
----------------

<VirtualHost *:80>
ServerName mywebsite1.com
<IfModule mod_proxy_balancer.c>
<Proxy balancer://sgcluster>
BalancerMember http://IPaddress1:80/ loadfactor=1
BalancerMember http://IPaddress2:80/ loadfactor=2
ProxySet lbmethod=byrequests

[Code] ....

I've included both configuration file in httpd.conf. I'm getting the errors, when I tried to start up the apache.

[Thu May 02 11:01:34.243583 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(448): AH02301: attach looking for /opt/apache2/logs/slo
tmem-shm-mod_heartmonitor.shm
[Thu May 02 11:01:34.243667 2013] [lbmethod_heartbeat:notice] [pid 9240606:tid 1] AH02282: No slotmem from mod_heartmonitor

[Code] .....

View 2 Replies View Related

Apache :: Add Multiple Web Pages To Website?

Jan 23, 2014

How do I add multiple web pages to my server?

View 6 Replies View Related

Apache :: Multiple Readme Files?

Mar 7, 2014

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.

View 1 Replies View Related

Plesk 12.x / Linux :: Disable Access Logs For Vhosts?

Mar 4, 2015

We run a high traffic server and the access logs get filled up very quick. I know we could implement rotation, but I would also like to prevent performance loss by having an access log, doesnt matter how marginal that would be.

View 6 Replies View Related

Apache :: Load Balance Multiple Domains?

Apr 2, 2015

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

<VirtualHost *:80>
DocumentRoot "/var/www/domain.com"
ServerName domain.com
</VirtualHost>

[Code] ....

Any example configuration of the default file.

View 1 Replies View Related

Apache :: Multiple Backend Ports For One Instance

Jun 16, 2014

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.

View 2 Replies View Related

Apache :: Redirecting To Multiple Webapps In Same Tomcat

Jun 25, 2015

I must say that I tried a lot of possibilities but my knowledgment in Apache WS is not too much advanced.

Apache Web Server version: 2.2.22
OS: Centos 6 64 bits
Tomcat version: 7.0.57

What I need to achieve is the following:

I have some plain websites defined this way:

<VirtualHost *:80>
ServerAdmin example1@example1.com
DocumentRoot "/opt/sites/example1/"
ServerName example1.com
ErrorLog logs/example1-error_log
CustomLog logs/example1-access_log common
RedirectMatch permanent ^/(.*) http://www.example1.com/$1

[Code] ....

View 5 Replies View Related

Apache :: 2.4.9 For Windows With Multiple Virtual Hosts

Jun 5, 2014

I have my Apache 2.4.9 for Windows with multiple Virtual Hosts, the main one is configure like this:

Code:
NameVirtualHost vhost1.domain.org:80
<VirtualHost vhost1.domain.org:80>
ServerName vhost1.domain.org
DocumentRoot "C:/Apache24/htdocs"
ServerAdmin techsupport@domain.org
# ErrorLog "logs/vhost1.domain.org-error.log"
# CustomLog "logs/vhost1.domain.org-access.log" common
</VirtualHost>

The rest like this:

Code:
NameVirtualHost vhost2.domain.org:80
<VirtualHost vhost2.domain.org:80>
ServerName vhost2.domain.org
DocumentRoot "C:/Apache24/htdocs/vhost2"
ServerAdmin techsupport@domain.org
# ErrorLog "logs/vhost2.domain.org-error.log"
# CustomLog "logs/vhost2.domain.org-access.log" common
</VirtualHost>

There is no *:80 anywhere and still when I go to any vhost it always load the main one.

What else do I need to check?

View 19 Replies View Related

Apache :: Setting Up URL Rewrite Rules Multiple VHs

Oct 21, 2012

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

For example:

Code:
http://WPSiteA/learning/
http://WPSiteB/learning/

which actually represents

Code:
http://WPSiteA/accounts/4/
http://WPSiteB/accounts/5/

Which in turn represents

Code:
http://{my_vps_ip}/accounts/4/
http://{my_vps_ip}/accounts/5/

respectively

Noticing the following:

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

View 3 Replies View Related

Which Versions Of Apache And Mysql Can Take Advantage Of Multiple Cpus

May 15, 2007

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?

View 6 Replies View Related

Apache :: Multiple Servers On Single Linux Box Redhat

Nov 5, 2014

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?

View 17 Replies View Related

Apache :: Unable To Get Multiple GUN Groups To Have Access To Directories

May 24, 2013

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"

[Code]....

View 1 Replies View Related

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?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved