The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.
0
votes
0answers
6 views
Understanding the apache Timeout value
I'm trying to understand the timeout value in apache since I want to make my server run very fast. On my local server, I tried using an apache timeout of 5 seconds. I then attempted to execute the ...
1
vote
0answers
15 views
508 Loop Detected (WebDAV; RFC 5842) [closed]
How can a 508 Loop Detected (WebDAV; RFC 5842) http error can be solved on a website with a apache webserver installed?
1
vote
0answers
15 views
More apache processes = higher TTFB = lower money? why?
I just upgraded my server from 8 GB ram to 16 GB ram.
I then adjusted my apache settings to serve more users at a time including mobile. Yes I'm still on prefork mode because I created a module and ...
0
votes
1answer
16 views
Sporadic problems with some images [closed]
I have a website http://dermadoc.ch with several images that are no more displayed (mostly by IE versions)
My server shows no errors but the browser just displays the broken image symbol.
The ...
1
vote
0answers
12 views
Apache2 vhost SSL configuration running on Plesk [closed]
I have a problem with configuring ssl in apache 2 vhost configuration running plesk.
My Server is running on a virtual machine with plesk 12.
And basically I just want to setup ssl for the domain.
...
2
votes
0answers
13 views
Strange HTTP:Accept-Language behavior instead of Browser Language Detect [closed]
My qTranslate-X (v3.4.6.4) WordPress (v4.4.2) plugin can't "Detect the language of the browser and redirect accordingly.", so i needed to do a hack by .htaccess. Following solution found in Drupal's ...
3
votes
1answer
54 views
Is 21 seconds too little for a connection timeout instead of the Apache default of 300 seconds?
I currently have apache timeout incomplete requests after 21 seconds because I don't want bad bots holding up the available connection slots, and I feel people would rather wait 21 seconds for a slot ...
3
votes
1answer
22 views
Getting MAMP Pro Apache to Listen on Multiple TCP Ports
I'm running MAMP Pro (Currently 3.5).
I would like to be able to run Apache's standard (non-SSL) TCP on multiple ports (80 and 8080) for testing.
It doesn't seem to let me do this. Adding a new TCP ...
1
vote
0answers
16 views
Negative impact of setting Apache's LimitRequestFieldSize very high? [migrated]
On apache httpd 2.2, I would like to increase the value of LimitRequestFieldSize to 48k or maybe even 65k.
Has anyone experience with setting the value of LimitRequestFieldSize to such high values? ...
2
votes
2answers
52 views
Using one index file in all directories and subdirectories
I have an index.php file, which processes content of a directory it is located in and renders output to the browser.
The problem is that the directory structure it is supposed to serve is rather ...
1
vote
0answers
12 views
Using SetEnvIf to not log overly accessed URLs
I'm trying to figure out how to craft my SetEnvIf's in my apache config so that the server hard disk isn't spinning 24/7 over log entries.
What I want to do is disable logging for all domains and ...
1
vote
0answers
19 views
How to implement wildcard Loadbalancer SSL certificate on Tomcat [on hold]
I have a SSL certificate with the extension .crt, this is wildcard certificate and we have web server that runs on Apache tomcat.
We have enabled HTTPS by default with the following connector:
...
0
votes
1answer
30 views
How to install SSL certificate (and enable HTTPS) on VPS via command line?
I am having a bit of an issue. I have purchased an SSL certificate from GoDaddy and have it and the private key uploaded on my server.
I have followed this guide but nothing is working for me.
My ...
3
votes
3answers
138 views
Redirect $.html to $/ mod_rewrite rule clash
I have already remapped URL's from for example /sub/test/ to test.html but I also want to redirect /sub/test.html to /sub/test/ but here seems to be a clash between the rules.
.htaccess files is in ...
2
votes
1answer
24 views
Subdomain showing incorrect content when going through HTTPS
I have a domain on my server called example.com and I set up a subdomain called links.example.com. Whenever I go to links.example.com, the domain is pointing to the same directory, even though in the ...
3
votes
2answers
34 views
Is a real http to htttps rewrite possible or is this always going to be a redirect?
I noticed that there are some articles on the Internet that talk about using the apache mod_rewrite module to rewrite a client to server http connection to https.
But rewrite does all the changes ...
0
votes
0answers
8 views
Redirect old domain to new domain masking [duplicate]
HOW To Redirect www.OLDDOMAIN.com to www.NEWDOMAIN.com with masking.
4
votes
1answer
32 views
Possible to split virtual host definitions into multiple apache conf files?
I have a single server that I use to host a whole bunch of smallish websites. It's recently come to my attention that a service called LetsEncrypt allows me to get an SSL certificate for free. The ...
1
vote
0answers
20 views
How do I configure Haproxy and Apache when adding SSL?
Currently I am using Haproxy to route my application which has a websocket back end and an Apache back end.
I have configured Apache's virtual host to use SSL. Now I'm confused like do I have to ...
4
votes
1answer
35 views
Why am I getting a 301 redirect when I haven't told Apache to give one? Can WordPress push a 301 redirect?
I am setting up a development environment with XAMPP on Windows. Apache version is 2.4.17.
My development url is www.hagertyforjudge.dev, also accessible at hagertyforjudge.dev. I am trying to solve ...
1
vote
1answer
39 views
Access Forbidden XAMPP
Ok so I've been having some trouble accessing a subfolder inside a project folder. I have the following structure:
-htdocs
-Project
-admin
The problem I'm havin is when I type ...
3
votes
1answer
49 views
Trouble with 301 redirect of old naked domain to new domain
Using .htaccess I am trying to setup a simple 301 redirect which redirects both exampleA.com and www.exampleA.com (the old domain) to exampleB.com (the new domain). However, accessing www.exampleA.com ...
2
votes
0answers
29 views
Change WAMP root directory for Apache so uses a shared folder from another virtual machine
I have installed Windows on a VMWare workstation and installed WAMP on it. Also I have installed WAMP on the main system. So I have shared c:/wamp/www folder from main system to that Virtual machine.
...
1
vote
0answers
34 views
How to deal with URL requests instead of paths from suspicious users
I have a website which has CloudFlare enabled on it (Free plan) and lately I've been getting some really weird requests which instead of GET /some/path were like this:
...
1
vote
0answers
26 views
What memory size per apache process is ridiculous?
(closetnoc, yes I come with interesting and maybe ridiculous questions, but...)
I have a question.
I'm trying to make my server run as wonderful as possible and I'm in the back-end. Ever since I ...
3
votes
0answers
38 views
mod_ruid2 not working with apache 2.4.18
I thought I did good service to my server by upgrading everything to php 5.6, and apache 2.4.18 through the easyapache interface, but now, apache won't start.
! Executing custom hook ...
0
votes
0answers
57 views
Moving rewrite rules to virtualhost tags instead of directory tags
Currently, I have my rewrite rules in what I believe is in the Directory context. My relevant part of httpd config file is similar to the following:
<virtualhost nnn.nnn.nnn.nnn:port>
...
1
vote
1answer
28 views
Which does google prefer: chained redirects or longer time-to-first-byte?
I'm clearly a webpagetest.org addict now. Once again, I tested my site after optimizing (by eliminating some file scans) and the speed greatly improved. It's now at about 150ms Time to First Byte from ...
1
vote
0answers
15 views
Can a later DocumentRoot directive override an earlier DocumentRoot directive?
Because I use cPanel, the WHM developers are trying to restrict my subdomain creation to any folder within my user account of /home/username.
In order to improve processing speed, I created a ram ...
0
votes
1answer
26 views
Despite adding a CNAME record for a subdoman, the webserver is showing the server's default host
I want one subdomain to point to another on the same domain.
DNS Records
Type Name Value
-----------------------------------------
A s1.example.com 10.20.30.40
CNAME ...
3
votes
1answer
75 views
What causes an empty referrer field in a webserver log file?
Given a log line from Apache such as the following:
xx.xx.xx.xx - - [04/Jan/2016:10:42:27 -0800] "GET / HTTP/1.1" 200 6861 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like ...
4
votes
1answer
97 views
How to redirect URLs with a specific IDs to new URLs on a new domain name?
I want to redirect all pages where there is a specific word inside in the URL. Both websites have the same articles.
For example:
...
1
vote
0answers
27 views
Why would a url of example.com/n (where n is the same number repeated 500x) return a 403 error?
I'm trying to add new functionality to my site which involves passing a whole bunch of parameters (could be hundreds of parameters) all encoded in base64 format. When I attempt the new URL I get an ...
2
votes
1answer
36 views
NGINX Rewriting Question
How would I convert the following Apache rule
RewriteRule ^watch/([A-Za-z0-9-]+)/?$ watch.php?v=$1 [NC]
into the appropriate format for an NGINX configuration file?
Further edit:
server {
...
1
vote
2answers
65 views
.htaccess rewrite with % in query string doesn't work
I am trying to do a rewrite of the site from
http://www.example.com/folder/site?data%5Bbranch%5D=xyz
to
http://www.example2.com/test/
Already tried the query string but facing issues with %. Any ...
2
votes
2answers
90 views
How to redirect all that URLs that does not end with “feed” to https?
I want to use Apache's mod_rewrite to redirect all URLs that does not end with /feed to a secure URL (identical, but starting with https), and leave all that ends with /feed unaltered:
I want this:
...
0
votes
0answers
24 views
Cannot open SSLSessionCache DBM file `/usr/local/apache/logs/ssl_scache' for status retrival
Every now and then when I make a major change with apache, I restart it. Then my error log from ip 127.0.0.1 fills up with:
Cannot open SSLSessionCache DBM file `/usr/local/apache/logs/ssl_scache' ...
4
votes
1answer
24 views
Mulitcore or Clock Speed
For programs like Apache, do they work better with more threads, or due to their asynchronous handling of requests make it so they handle better with a higher clock speed?
3
votes
1answer
66 views
X-Robot-tag noindex not appearing in header
I am trying to include the following in my response header to all resources in multiple directories (dirone/dirtwo/dirthree/direfour) from an Apache server.
X-Robots-Tag: noindex, nofollow
In my ...
1
vote
0answers
21 views
mod_php5 as a static apache module in a cpanel environment
One source claims that apache would perform about 5% slower when using modules that are dynamically loaded (shared). Because of this, I want to be able to make PHP on the server run faster by ...
2
votes
1answer
70 views
Parse Python script on Apache virtual host
I have an up and running Apache server working with PHP on a Centos 6 server. Apache was installed using yum -y install httpd mod_ssl. I now wish to add Python.
I installed Python as follows:
wget ...
0
votes
0answers
5 views
Excluding a file from an IP block [duplicate]
I have recently converted a pre-2.4 configuration to Apache's new authorisation configuration but ran into a problem/misunderstanding concerning more than one RequireAll block.
What I am basically ...
2
votes
0answers
28 views
Trying to unload unnecessary modules from apache but don't know which
I have apache 2.2 with whm/cpanel installed on my server. When I look at the loaded modules list, I see:
core_module (static)
authn_file_module (static)
authn_default_module (static)
...
1
vote
0answers
30 views
Separate multiple domains with htaccess (solution works on one hosting, not on another)
I have two different domains on one VPS. It's Apache 2.4.7, I remember trying long to set up name based Virtualhosts on localhost to find out Apache Virtualhosts are not supported anymore. (I cannot ...
1
vote
3answers
46 views
Regular expression for Apache redirection
In the .htaccess file I would like to redirect (301):
From: http://www.example.com/photo<anything>
To: http://www.example.com/blog/
Basically, any URL starting with /photo should be redirected ...
1
vote
2answers
68 views
best apache log file permissions on cpanel server
In an effort to protect my site from bad bots including ridiculous hackers that can login to the server, I want to secure access_log and error_log as much as possible without breaking apache or ...
0
votes
1answer
15 views
Is a blank really a directory when dealing with mod-rewrite?
I spent about 20 minutes wrapping my head around this, and finally came to a solution but did not know why it worked. The important lines (as it relates to this question) in the apache configuration ...
0
votes
1answer
12 views
how to kill program that displays webpages in fastcgi/apache
I'm beginning to think PHP contributes to extra milliseconds of waiting time. After all, my website is mostly meant for showing photos and I like to have things work fast and so does google.
I was ...
0
votes
1answer
69 views
Preventing phpMyAdmin hacks
I recently saw an unexpected error in my error log, and upon investigating, found it repeated many times. What are the deviants trying to accomplish, and is there any risk of them accomplishing it.
...
2
votes
2answers
134 views
Forcing HTTPS and WWW with apache
Apache does not force HTTPS in a subfolder of a folder, but it works in the first level subfolders.
Here are all the HTAccess snippets I have tried:
RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
...