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
ADVERTISEMENT
Jan 23, 2014
How do I add multiple web pages to my server?
View 6 Replies
View Related
Nov 11, 2014
I have two domains as virtual hosts on same IP address.
I am getting certificate error for the second domain when I try to check email (using MS Outlook). I can't permanently "accept" certificate, it complains again and again. Certuficate I created and self signed for imap.domain1.com, but the second email server is imap.domain2.com, so it complains.
How do I set separate email certificates for two domains? Is it possible at all?
View 5 Replies
View Related
Jul 8, 2007
Can i run multiple sites on apache? and if so how do i do it.
View 3 Replies
View Related
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
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
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
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
Mar 31, 2015
Plesk 12 is used, latest #MU on CentOS 6.5 final.
Maillog is full of messages like:
Mar 31 14:56:52 hosting plesk sendmail[1177]: _mh_fork(): Error occured during waiting the child process with pid: 1178: No child processes
Mar 31 14:56:52 hosting plesk sendmail[1177]: Error during 'check-quota' handler
Mar 31 14:56:52 hosting plesk sendmail[1177]: Unable to get sender domain by sender mailname
[Code]....
View 1 Replies
View Related
Apr 14, 2009
I would like to be able to cause my server to show each error code from 404, to 501 etc and to run though the list and to show me what appears, is there a tool or a online tool that can do this?
View 23 Replies
View Related
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
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
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
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
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
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
View Related
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
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
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
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
Feb 18, 2015
Our server : [URL] .....
plesk v11 (64BITS)
PROBLEM DESCRIPTION
We found 502 Bad Gateway error Nginx on multiple domain "currently troissoeursetunfrere.com is a wordpress site e-commerce" and also malittleboutique.com ecommerce wordpress, possibly to fix this problem we have followed this tutorial " [URL] ....
we perform the following operations:
sudo apt-get remove php5 php5-cgi php5-fpm
sudo apt-get install php5 php5-cgi php5-fpm
Following these operations we lost access to cpanel.
View 3 Replies
View Related
Jul 1, 2008
In my old server (VPS) I had my dir structure as:
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.
View 2 Replies
View Related
Jul 16, 2014
I am using apache as a reverse proxy, I have several site with http and everything is working fine. For the first time I have tried to configure with https port 443 with certificate, the problem is that it doesn't return to the browser the certificate that I have indicate in the "virtual host" but rather the default certificate of the site.
Here is my virtual host :
<VirtualHost *:443>
ServerName hygie.sante-idf.fr
SSLEngine on
SSLProtocol all
SSLCertificateFile "/root/apacherp/cert/hygiesslcertificate.cert"
SSLCACertificateFile "/root/apacherp/cert/hygieCAcertificate.cert"
SSLCertificateKeyFile "/root/apacherp/cert/hygieprivate.cert"
ProxyPass / http://XXXXXX/
ProxyPassReverse / http://XXXXXX/
</VirtualHost>
Everything is fine when I start stop, I m sure the entry is used I have added : NameVirtualHost *:443
But the Certificate information arent the one that I have enterred , but the default values I think....
httpd -v
Server version: Apache/2.2.3
Server built: Mar 4 2010 09:57:54
View 7 Replies
View Related
Jun 6, 2014
I'm trying to add multiple PHP version (current version installed: 5.5.13), using the official documentation. I always get 500 Internal Server Error after switching to the new version, with the following error_log content:
Code:
[Sat Jun 07 00:49:35 2014] [warn] [client XXX.XXX.XXX.XXX] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Sat Jun 07 00:49:35 2014] [error] [client XXX.XXX.XXX.XXX] Premature end of script headers: index.php
Here you can view phpinfo() obtained running php54-cgi index.php from the command line. Same script doesn't work as FastCGI.
I'm trying to add PHP 5.4.29. Here is how I compiled it:
Code:
./configure
--prefix=/usr/local/php54
--with-bz2
--with-config-file-path=/usr/local/php54/etc
--with-config-file-scan-dir=/usr/local/php54/etc/php.d
--with-curl
[code]....
Switching back to PHP 5.5.13 and the script works fine (a simple phpinfo() output).How can I try to understand/debug what's wrong with the installation?
View 5 Replies
View Related
Dec 3, 2008
I'm not sure if this is the right forum, or if anyone can suggest a message board where I might get support on this.
This is what I have. I have Apache and IIS both running on Windows 2k3.
Apache is running in reverse Proxy mode sending multiple domains/virtual hosts to IIS.
Code:
ProxyRequests Off
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://localhost:8080
ProxyPassReverse / [url]
ServerName mydomain.com
</VirtualHost>
Now, if I type in [url]everything works great and IIS (listening on 127.0.0.1:8080) serves the page. However, I am doing custom error trapping, so when I type in [url](and /mydirectory doesn't exist on IIS) I need to fire ASP code (via custom error messages/handling) on the IIS server and then present a data driven page.
However, Apache is returning A 502 error:
Code:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /mydirectory.
Reason: DNS lookup failure for: localhost:8080mydirectory
Is there a way for me to setup Apache to pass all error checking to IIS while using it as a reverse proxy?
View 0 Replies
View Related
Sep 20, 2007
IIS does not support .htaccess, as we all know.
So I am wondering if it is possible to use local php.ini files for each site on IIS?
View 1 Replies
View Related
Apr 27, 2009
I am looking for a multiple IP hosting solution for our network of 10 sites. Ideally I'm hoping to find a host which will allow me to consolidate all of our sites within one control panel, but be able to offer each site to be hosted on a unique class-c IP so that we can enhance the benefit of inter-linking between sites.
If you can suggest a solution beyond www.seohosting.com that would be fantastic.
View 10 Replies
View Related
Jul 7, 2008
Have been hosting with Site5 for the last few years, and have been very happy. I have a number of websites, it's easy for me to add another one (the domain points to a subfolder but the address acts like a 'real' domain if you type it in), they have everything I need and are cheap.
The downside is all my sites share an IP address. I'm either looking for some hosting at a few dollars a month tops (shared is fine) with PHP / MySQL, or an account that give me the ability to add as many domains as I'd like, and if necessary, give them all unique IP addresses.
Basically, I'm just looking to protect myself from anyone doing a reverse IP check on the domains. I suppose the ideal situation would be one where I could control / see stats for all my sites through one control panel, and just have the ability to buy another IP address when needed, and if I don't need to, share one IP with multiple sites...
I guess worst comes to worst, some cheap but reliable hosting (with someone that isn't going to mess me around or fold in 6 months time) where I'm going to share an IP with another few hundred sites would be acceptable...
View 5 Replies
View Related
May 17, 2009
I am looking for a good router which will handle two separate WAN connections and bridge them together. Basically, we have DSL at our office (1.5mbps down / 769kbps up), its the only service we can get, cable is not offered, and a T1 inst fast enough and costs too much. We require a faster connection, doing Skype, VPN connections to servers, desktop sharing etc.
Basically we want to order another DSL line 1.5mbps down / 768 kbps up and join it together with our current DSL connection for a total of 3mbps down/1.5mbps up.
Just want to make sure this is possible and if you guys can recommend a router brand and model. To clerify, we don't just want redunacy/fail over, we need to utilize both DSL connections at the same, as if they were one.
View 5 Replies
View Related
May 19, 2009
I currently have 2 web servers both running the cPanel Control Panel.
Out of the two servers only one is used and the other is just used currently to test scripts. It has come to a stage with the website capacity that I now require both servers to run in con-junction with each other to spread the load.
Questions:
1) There is a file upload service, How would you go about networking both the servers to allow remote removal / uploading of files to different servers. Eg, If user is on server 1 and files are stored on server 2. Also deletion of files etc - The website is programmed mainly in PHP.
2) File updating - The website is constantly being updated and therefore both servers will need the PHP files to be in sync. How would you go about doing this?
Both servers are at the same Data Center location.
View 3 Replies
View Related
Feb 22, 2009
i currently have 2 webhosting providers but want to consolidate to one acct at one host with a bit better load times...
1. JaguarPc - i have two accts with them
a. i have a shared acct with them currently - i believe its called the gigadeal (something like $10 a month). i have been with them since 2000, pretty decent host not too much downtime. support is "ok" when needed.
currently i have 3 smallish websites hosted on this one acct, they dont get a lot of traffic. two of them are using wordpress one is just a static html site.
i did a look up and found the server has about 130 sites hosetd on it. so not too bad in regards to overselling. however my big problem is the site takes about 900-1500ms to generate a page. this seems to be pretty often. again the sites dont really draw that much traffic. so thats not the problem here.
b. i also have one of their freedom vps accts with upgraded ram and bandwidth. i only have one site hosted on it. this site used to get about 500K+ unique visitors a month. at its peak we were serving around 1tb bandwidth a month... i know we ran the vps hard but considering we wanted to stay under $50 it worked well. there was of course some downtime due to the massive traffic - [we serve up a popular flash cartoon website].
2. Hostgator - babygator plan
this host only serves up one wordpress site - the site isnt very well known yet, but the site is growing each month. the funny thing is that when i looked up this server there was about 830 websites hosted on it - obviously oversold and crowded. support really sucks here imho. however, the page load time is anywhere between 250ms to 500ms a lot faster than JaguarPcs. which is crazy since jag has much less sites on the server...
im looking to basically consolidate the websites that are on both shared plans. my original thought was to keep them all on my shared hosting acct at jaguarpc (the one with the 3 sites). obviously i cannot add them to the vps since its pretty active. also the vps is business and the other sites are all personal. and i dont want them to mix so to speak.
i am currently spending about $20 a month between the two shared host plans. im looking for some recommendations as to where to move -- where speed isnt such a big problem, and i can maintain one acct. it would be great if i could host these sites all for around $20 - hopefully without much lag.
was thinking mediatemple - but after reading so many negative posts here about them - im not sure...
View 14 Replies
View Related