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.

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

debian 8 apache 2.4 SNI

I've installed Apache 2.4 on Debian 8. And I have two virtual hosts. When I load either of the sites then only one loads. I've had SNI configured and working with Apache 2.2 and haven't had any issue ...
1
vote
1answer
16 views

haproxy + Apache + virtual hosts -> wrong host is displayed

On CentOS 7.2.1511 Linux I have installed haproxy-1.5.14-3.el7.x86_64 and httpd-2.4.6-40.el7.centos.1.x86_64 packages. The /etc/haproxy/haproxy.cfg binds HAProxy to ports 80 and 443 and accepts HTTPS ...
0
votes
1answer
7 views

Would changing the expiry header for `analytics.js` from Google Analytics mess things up?

I'm using GTMetrix to help figure ways to speed up my page load times. One of the suggestions is to Leverage Browser Caching, which indicates wanting resources to expire 1 week or longer. One of the ...
0
votes
0answers
12 views

Appserv Windows Instalation Error! Blank Screen

I've been running Appserv for a number of years with little problems, but after installing Windows 10, and a recent automatic update my localhost just shows a blank screen. After trying many "...
1
vote
1answer
12 views

If I hide files in my web servers directory root, can users find them anyway?

More specifically, how can I theoretically find the files that is in a website's root directory? For example: My current imaginary website has 2 folders (labeled rescources and screenies) and 3 ...
3
votes
0answers
20 views

Can I set memory limits on cpanel acounts

I have one account on my vps that is hogging more than it's fair share of memory. How can I limit that account's memory usage? Setting memory_limit in the php.ini? It appears as if this sets the ...
0
votes
1answer
17 views

Specify or omit IP addresses for Apache virtual hosts?

I have a few virtual machines with apache 2.4 installed, and the base setup made by the hosting provider. They specify the IP address in every virtual host configuration: <VirtualHost 123.234.56....
3
votes
2answers
23 views

Configuration-time variables in apache configuration files

I have several virtual host configurations which are stored in files on their own and differ mostly in properties like DocumentRoot, logfile names, ports (for a RewriteRule) and the like. Sometimes ...
4
votes
2answers
408 views

Is it safe to give write permission to _www user account?

I want to use PHP to modify some of my files, but can someone else use this account to modify my files without my acknowledgment?
3
votes
1answer
31 views

Can Apache serve resources recursively if there's a 404 in the current directory?

Is there a possibility to serve resources hosted with Apache recursively across the directory hierarchy, using mod_rewrite or the like? Example#1: A server document css/php/html/... refers to the ...
1
vote
0answers
5 views

Best practice for temp directory used by MediaWiki?

This question appears to be related to File system permission for MediaWiki uploads? Tightening permissions has lead to "Error creating thumbnail" messages: MediaWiki has a page on the temp ...
2
votes
0answers
15 views

File system permission for MediaWiki uploads?

We are an open source project and we have an Apache web server with a MediaWiki. Its a stand alone installation, so we don't have the complications of shared hosting a varying userids. After 20 years ...
2
votes
1answer
27 views

Redirect ALL requests to host IP

I have a honeypot running on AP so if anyone connects and try's to browse it will redirect to the root page. I am using dnsmasq to do this with the following entry log-facility=/var/log/dnsmasq.log ...
0
votes
1answer
34 views

Request for an existing file causes 404 error

A customer cannot access a file that I put online for him, or the folder that it is in. Requests for both the folder (/bastide) and the file (/bastide/coupon%20d'engagement.pdf) return 404 errors. I ...
1
vote
1answer
19 views

Soft 404 problem with nginx frontend to apache2 modperl backend

Using nginx as a frontend to our modperl apache2 servers. We have a soft 404 problem at Google Search Console. The problem is that we have many pages expiring all the time, once they expire we add a ...
0
votes
0answers
32 views

Can't deploy web pages on AMPPS

I have few web pages on my computer (firstpage.html, secondpage.html). So after I have installed ampps, I moved them to htdocs folder, then write localhost/firstpage.html on browser. Browser tells: ...
3
votes
1answer
23 views

How to modify httpd.conf to add one more site in apache 2.4.6

How to modify httpd.conf to add one more site in apache 2.4.6? Here is my httpd.conf ServerRoot "/etc/httpd" Include conf.modules.d/*.conf Listen 80 User apache Group apache ServerAdmin root@...
1
vote
1answer
25 views

phpMyAdmin can't fint tmp directory

I have a site hosted with BlueHost. I need to upload a rather large SQL file to the tmp directory so I can run an import. However, phpMyAdmin is giving me the following error: The directory you ...
3
votes
1answer
52 views

Redirecting specific URL from HTTPS to HTTP

Long time lurker, first time caller... I have a backend like admin.mysite.com which is able to use HTTPS (has a certificate installed, etc) - but that admin portal is a CMS backend for a number of ...
3
votes
1answer
29 views

Can html go in the ErrorDocument value internally in httpd.conf?

According to apache documentation, the final parameter of ErrorDocument can be specified as a path, URL or text to any error code. What I have done so far to eliminate any calls to the I/O file ...
3
votes
3answers
95 views

Force Browser to put .pdf or .jpg links in download queue instead of opening it directly

I have an apache server with access to a directory, eg /downloads/pdf/ How can I tell the sever when a user requests http://example.com/downloads/pdf/example.pdf not to open it directly, but ...
3
votes
1answer
38 views

Unknown files appearing in my website 404 error page list without a referring URL

I've been seeing lots of entries in my 404 error page lists in my shared hosting account, which are attempts to hit sub URLs on my 'static' website, such as (usually with no referring URL): /\xef\xbf\...
4
votes
2answers
98 views

ErrorDocument in dynamic SubFolder

I host different Websites in 1 web space. But I don't want to give the ErrorDocument an absolute SubFolder name. Is it possible to make website a variable? ErrorDocument 404 /website/error?error=404 ...
1
vote
1answer
59 views

What regex engine does mod_substitute use?

Any idea what regex engine mod_substitute uses? I'd like to do a little search and replace with it, and I need to escape some characters, so I wanted to see how that particular engine handles that. (...
5
votes
1answer
81 views

Looking for explanation of Apache behavior on manipulating headers

Tried to get an answer at ServerFault - they don't know, all real gurus are sitting here. The background of the issue: Googlebot creates non-existing URLs and tries to crawl them. On some URLs Apache ...
0
votes
0answers
7 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
20 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 I'...
0
votes
1answer
29 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 ...
2
votes
0answers
39 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
27 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
74 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
36 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 ...
2
votes
2answers
76 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
26 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 ...
0
votes
1answer
32 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
193 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
33 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
40 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
10 views

Redirect old domain to new domain masking [duplicate]

HOW To Redirect www.OLDDOMAIN.com to www.NEWDOMAIN.com with masking.
4
votes
1answer
130 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
76 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
51 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
48 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 localhost:...
3
votes
1answer
59 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
51 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
50 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: "\xddG@\xdd\"\xb8\xbf\"\x8f\x80\...
1
vote
0answers
46 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
77 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 '/usr/local/...
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
32 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 ...