Apache Http.conf Or DNS Misconfig

Aug 7, 2008

I have two domains that are sharing one IP address. One site is meissenation.com and the other is mifbody.com.

My httpd.conf file looks like this: ...

View 2 Replies


ADVERTISEMENT

Apache :: Capturing Internal Apache Errors Return Custom HTTP Status

Nov 15, 2013

Server Version: Apache/2.2.22 (Unix)

On our production service, we've been getting numerous malformed POST requests to some of our CGI scripts that are showing up as 500 errors in our logs. They are malformed in the sense that the actual content length doesn't match the Content-Length specified in the request.

Here's the most trivial example I can come up with that reproduces the problem for us:

POST /some_valid_alias HTTP/1.1
Host: example.org
User-Agent: Arbitrary/1.0
Content-Type: multipart/form-data; boundary=---------------------------41184676334
Content-Length: 769
-----------------------------41184676334

In addition to the 500 error in the access log, we see the corresponding error in the error log:

(70014)End of file found: Error reading request entity data

Based on the nature of the POST request and the error response, it does appear that Apache is doing the right thing here.

The POST never actually makes it as far as the script being targeted (/some_valid_alias in the above example); in other words, Apache returns 500 to the client, writes the error to the error log and never executes the script.

Is there a way to capture/avoid internal Apache errors like 70014, and return some other HTTP status besides 500 (like 403)? It's particularly annoying in our case, because our server sends us an email for all 500 errors.

So far, our best "defense" against these 500 errors is to disallow POST for these aliases, which normally just ignore the POST data anyway (when the request is not malformed):

RewriteCond %{REQUEST_METHOD} ^POST$
RewriteRule ^/(some_valid_alias)(.*)$ $1$2 [R]

But this won't work for all our scripts, because in some cases we do want to permit POST.

View 2 Replies View Related

Apache 2.2 And Httpd.conf

Mar 6, 2008

I recently updated to apache 2.2 and when I went to check

/usr/local/apache/conf/httpd.conf

I noticed that a lot of the stuff was missing from what I usually see in apache 1.3 Was a new file created when the update was finish? I used easyapache to make the update.

I was actually looking to change the

Keepalive
Timeout
MinSpareServers
MaxSpareServers
MaxRequestsPerChild
Etc...

But it doesn't look like it's in there.

View 2 Replies View Related

Apache 2 - Httpd.conf

Sep 15, 2008

how should I optimize httpd.conf on my server. Apache was set up by my friend, unfortunately it started to "stuck" lately during peak time. Browser is connecting to a website for a long time before it actually starts to load it.

My current setup:

Timeout 300
KeepAlive On
MaxKeepAliveRequests 300
KeepAliveTimeout 15
MinSpareServers 2
MaxSpareServers 5
StartServers 5
ServerLimit 650
MaxClients 650
Server:
Intel Quad-Core Xeon X3220 @ 2.40 GHZ
4x 2GiB Kingston ECC Not-Registred 667Mhz
2x 150GiB RaptorX 10k RPM, sw raid 1

View 12 Replies View Related

Apache Httpd.conf

Nov 10, 2007

tuning apache configurations, and would like to seek for some opinions on how I should optimize my httpd.conf

The server is primarily for downloads, serving file sizes that are around 100~200MB.

how I should configure my apache so it'll allow a better/faster/more stable environment?

Hardware Specs:
Intel Xeon 3220 Quad-Core (2.4Ghz)
2GB Ram

My current httpd.conf

ServerTokens None
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 20
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

# worker MPM
<IfModule worker.c>
StartServers 4
MaxClients 500
MinSpareThreads 25
MaxSpareThreads 100
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

View 4 Replies View Related

Apache :: Making All Necessary Changes To Conf Files

May 28, 2014

I recently upgraded my Apache 2.2.22 installation on Win 8.1 to 2.4.9, making all necessary changes (I believe) to the conf files. I am puzzled that two files in the format authdigest_shm.xxxx now appear in my logs directory when the server is restarted. (Edit: there is also no httpd.pid file)I assume this is to do with running digest authentication, but is a new phenomenon since the upgrade.what conf file setting(s) have I screwed up?!

View 2 Replies View Related

Apache Does Not Restart After Editing Httpd.conf

Jun 12, 2009

I am having a problem on my VPS. I am running the latest version of Apache on Windows Server 2K3, and after editing httpd.conf to allow virtual hosts (#Include /conf/extra/httpd-vhosts.conf) and trying to restart the service, an error appears saying the operation failed.

I have even tried restarting/starting the service via services.msc

If I am not using the default httpd.conf Apache will not restart at all... it is very strange. I have also tried doing a repair of the installation of Apache.

View 11 Replies View Related

Find Out Which .conf Files Apache 2.2 Is Loading

Apr 23, 2009

Is there a way to get Apache to tell me which .conf file it is loading at start-up?

There's a box that's misbehaving and Apache is running on port 80 and 8080 on the box... but we can't locate *why* it's running on port 8080. I can't find any Listen 8080 statement in the typical config files. If I knew which config files it was loading, I could go through all of the files in more detail.

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 Wont Start :: Httpd.conf File Was Empty

Apr 6, 2008

[root@server1 ~]# service httpd start
no listening sockets available, shutting down
Unable to open logs

CENTOS Enterprise 4.6 i686 on standard - WHM X v3.1.0

apache 2.2

httpd.conf file was empty... I'm recompiling right now.

View 3 Replies View Related

DNS Issues Rndc.conf & Named.conf

Apr 8, 2009

It started with this error:

Bind reloading on server01 using rndc zone: [ns1.mydomain.net]
Error reloading bind on server01: rndc: connect failed: 127.0.0.1#953: connection refused

so i did the obvious checked the csf firewall to see if port 953 was enabled and it was

so i took a look at rndc.conf

Code:
root@server01 [~]# nano /etc/rndc.conf
#start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M=";
};

options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
#key "rndc-key" {
# algorithm hmac-md5;
# secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M=";
#};
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf
Then i took a look at named.conf

Code:
options {
/* make named use port 53 for the source of all queries, to allow
* firewalls to block all ports except 53:
*/

//query-source port 53;

/* We no longer enable this by default as the dns posion exploit
has forced many providers to open up their firewalls a bit */

// Put files that named is allowed to write in the data/ directory:
directory "/var/named"; // the default
pid-file "/var/run/named/named.pid";
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
/* memstatistics-file "data/named_mem_stats.txt"; */
};

logging {
/* If you want to enable debugging, eg. using the 'rndc trace' command,
* named will try to write the 'named.run' file in the $directory (/var/named").
* By default, SELinux policy does not allow named to modify the /var/named" directory,
* so put the default debug log file in data/ :
*/
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

// All BIND 9 zones are in a "view", which allow different zones to be served
// to different types of client addresses, and for options to be set for groups
// of zones.
//
// By default, if named.conf contains no "view" clauses, all zones are in the
// "default" view, which matches all clients.
//
// If named.conf contains any "view" clause, then all zones MUST be in a view;
// so it is recommended to start off using views to avoid having to restructure
// your configuration files in the future.

view "localhost_resolver" {
/* This view sets up named to be a localhost resolver ( caching only nameserver ).
* If all you want is a caching-only nameserver, then you need only define this view:
*/
match-clients { 127.0.0.0/24; };
match-destinations { localhost; };
recursion yes;

zone "." IN {
type hint;
file "/var/named/named.ca";
};

/* these are zones that contain definitions for all the localhost
* names and addresses, as recommended in RFC1912 - these names should
* ONLY be served to localhost clients:
*/
include "/var/named/named.rfc1912.zones";
};

View 5 Replies View Related

Apache HTTP Flooding

Aug 15, 2007

Someone seems to be flooding our HTTP server somehow. We use the latest version of Apache on Windows.

Is there any Windows modules that can filter the total amount of IP connections, or something built into Windows that could filter this?

View 2 Replies View Related

Apache :: Hostname Via SNI And HTTP Are Different

Jan 6, 2015

I'm in the process of trying to pin down a couple errors I've been running into, and after installing and configuring SSL I have occasionally been receiving the following error:

View 2 Replies View Related

Apache :: 503 On HTTP And Folder Only

Oct 9, 2012

Suddenly on a particular website (possibly following an easyapache php minor version update) if I specify a folder rather than a specific file I get a 503 response.

If I do the same on https it's ok. But http always gets a 503.

If I specify a file it's fine, but the folder always hits a 503.

I have removed the htaccess file and php.ini to rule that out and indeed they weren't factors - it seems like it goes wrong before reading the htaccess file.

View 3 Replies View Related

Apache Calls On HTTP GETS And PUTS

Mar 3, 2007

Does anyone know if there is an Apache directive where you can have Apache call a script on HTTP PUTs to a specific location and also for HTTP GETs?

View 0 Replies View Related

Apache :: Redirecting From HTTP To HTTPS

May 4, 2015

I keep hearing that redirecting from http to https is not very secure [non-SSL to SSL]. Among other reasons, one reason is that the browser may continue to think it is communicating with non secure server and may not encrypt the data. Is it true? I hope not, I am using the following -

<VirtualHost 12.34.567.89:80>
ServerName www.mysite1234.com:80
Redirect / https://www.mysite1234.com/
</VirtualHost>

View 1 Replies View Related

Apache :: Possible To Do P2V Migration Of HTTP Server 2.2

Jun 27, 2013

its possible to do a P2V migration of a Apache http server 2.2

Present environment:

Windows 2003
Apache http server 2.0.63

There are 2 webservers (running Apache) for load balancing. The backend server runs an application which uses an oracle database. Is a P2V migration of the web servers possible?

View 2 Replies View Related

Apache :: Can't Access Http Anymore (2.2)

Sep 30, 2014

I made the idiotic move of not making a backup of the default configs and now I can't access my http website externally. ssl works fine, but I need http to work too.

View 3 Replies View Related

Apache HTTP Started But Not Accessible

Aug 30, 2013

I was trying to set up a JBoss cluster with apache httpd mod cluster in windows.I was able to start the apache using the command 'httpd. exe'. But when I tried to access it using localhost:6666/mod_cluster_manager , the page was not accessible.I have the entry 127.0.0.1 localhost in my hosts file.

The http.conf contains lines as given below:

# MOD_CLUSTER_ADDS
# Adjust to you hostname and subnet.
<IfModule manager_module>
Listen 127.0.0.1:6666
ManagerBalancerName mycluster
<VirtualHost 127.0.0.1:6666>

[code]....

View 2 Replies View Related

Apache :: 2.2.22 Not Working Via HTTP Only Via HTTPS

Mar 3, 2015

I'm using a turnkey image for smallmachineforum system, installed on amazon aws instance.

In the default configuration I can't use the http version of the site, only the https.

It does not seem to be a network issue, a telnet on port 80 opens.

The server is apache version 2.2.22, on a Debian 3.2.57-3+deb7u2 x86_64

View 2 Replies View Related

Apache :: Redirect Https To Http?

Aug 17, 2013

I am trying to find out if redirecting an https URL to an http URL will still provide the security of the original https? Should the page information for the redirected http page show it as being unencrypted or shouldn't it have the same encryption as the original https?

View 3 Replies View Related

How To Setup The Apache Server To Allow Http Downloading

Sep 22, 2009

I installed apache, mysql, php on my windows vista laptop, and want to test http downloading. This means when selecting a file (for example, contact.php) from a page, and then click download, it will be downloaded to my desktop.

Do we need to install any other softwares to do that?

View 10 Replies View Related

Apache :: SSL Error - HostName Provided Via SNI And HTTP Are Different

Jul 31, 2014

We are getting the below message produced in error.log when accessing from mobile application. Even I have updated apache from 2.4.9 to 2.4.10 also. Still facing the same error like below.

[Thu Jul 31 15:27:10.934564 2014] [ssl:error] [pid 12000:tid 6520] AH02032: Hostname teampark3.sogeti.com. provided via SNI and hostname teampark3.sogeti.com provided via HTTP are different

How to resolve the issue?

View 10 Replies View Related

Apache :: HTTP File - Low Download Speed

Mar 29, 2013

The problem is that HTTP file download speed is nearly 10 times lower than FTP download speed. What could be limiting it? It's about 7Mb for FTP and 70-100Kb for HTTP. Strangely, download speed is OK when browsing from the server itself (e.g. via RDP)

View 2 Replies View Related

Apache :: Cannot Get Server To Respond To HTTP Request

May 6, 2013

I have an Xitami server and am migrating to apache httpd. I have the regular server working fine. I tried configuring ssl, but no requests are coming through. I know 443 is open on the router because it works fine under Xitami. I checked the logs and it si starting fine. I am attaching my httpd.conf and the startup log. If I try to access the website using https, it just times out and nothing goes in the log file. I replaced my domain with domain.com. I have tried many different examples, but cannot get it to work and am not sure what to do.

View 5 Replies View Related

Apache :: Allow Access From Webserver - Block From HTTP

Mar 13, 2015

I want to run an HTML webpage that accesses an MP3 resource that's also on my website. However, I only want the webpage to have access to the file and block access from those attempting to access the file directly. That leaves me with two options:

1. Block access through the Apache configuration so that only my Webserver can access the resource, or

2. Hide the URL in the code.

How I can go about doing this?

View 1 Replies View Related

Apache :: HTTP Over SSL System - Authentication Authority

Oct 6, 2013

I have to create a structure in which there is a client, a server and an authentication authority.

The authentication authority verifies the identity of both the client and server before they can communicate, so that the client can access the content offered by the server. Everything must be made using HTTP with SSL (HTTPS).

For now I have installed xampp on my pc with ubuntu, I performed the initial configuration and was able to view a test page locally hosted by entering the URL of the virtual server "www.server.it" (added to the configuration of apache2).

View 1 Replies View Related

Apache :: Https Somehow Get Rewritten Into Http And Causes Error

Dec 4, 2013

I have a custom software that runs it's own webserver. I then found instructions on how to use apache2 as a proxy that will enable ssl for that site. (long story short, my custom software doesn't support ssl and it's not an option)

View 2 Replies View Related

Apache :: Allow Website To Be Accessed With Http And Https

Jun 7, 2015

I recently got a SSL-certificate for my website. Now the old links to my website (using only http) doesnt work, the visitors just getting redirected to my index page. How can I change my .htaccess so both http and https works, but keep https as the preferred? Or even better, redirect old http links to https? I'm not using www.

My current .htaccess:
RewriteCond %{HTTPS} off
RewriteRule (.*) https ://%{HTTP_HOST}%{REQUEST_URI}

View 2 Replies View Related







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