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
6 views

change wamp-apache root directory, set shared as root

I have installed windows on VMWare workstation and installed wamp on it. Also I have installed wamp on main system. So I have shared c:/wamp/www folder from main system to that Virtual machine. So on ...
0
votes
0answers
9 views

Setting up SSL for tomcat [migrated]

sorry not sure if this is the correct page for asking this question but here it is: I have deployed tomcat as a servlet container inside eclipse. my web service works fine on port 8080 that I set up ...
1
vote
0answers
17 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
21 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
14 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
22 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
22 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 ...
0
votes
0answers
9 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
19 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
52 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 ...
5
votes
1answer
80 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
26 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
29 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
51 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
1answer
60 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
11 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
15 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
55 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 ...
0
votes
0answers
14 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
0answers
46 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 ...
1
vote
0answers
22 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
29 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
45 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
38 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
14 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
10 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
45 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
112 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"' ...
0
votes
0answers
16 views

Godaddy Plesk domain forwarding to apache application

I am trying to configure my domain to forward to my application running on apache server (on the godaddy server). I'm using Plesk control panel to setup my domain forwards. In the Plesk CP, I've set ...
1
vote
1answer
39 views

APACHE mod_rewrite add query string to URL

Using mod_rewrite how can I change the current URL format: From: https://example.com/something/NAME-IN-CAPS/phonebook.xml To: https://example.com/anything/whatever/phonebook.php?name=NAME-IN-CAPS
1
vote
1answer
52 views

PHP webpages in sub-directory cannot be accessed

I've got a university club website at thing.uni.ac.uk/meow/foobar which also has the domain foobar.co.uk. I don't have access to the config. I set up this website using HTML/CSS/JS alone and it's been ...
2
votes
1answer
55 views

After rewriting URL page not found

I want to rewrite my current URL that is http://localhost/sitename/landing-page/?from=Algeria&to=Afghanistan&submit=Submit to http://localhost/sitename/removals-from-Algeria-to-Afghanistan ...
3
votes
2answers
35 views

How can I make Apache wait for images to be fully written to the storage drive before serving them?

I'm using fswebcam to take pictures from my webcam and write them to /var/www so that anybody can view them from my website. The problem is that my server is a Raspberry Pi with a slow SD card. It ...
1
vote
0answers
20 views

Vhost sends www.* to another domain

I created a virtual host at my server to host multiple sites, but I got a few unexpected problems. One sites doesn't gets recognized by the server and is redirected to another domain on the server, ...
3
votes
3answers
74 views

How to change document root of main domain in cPanel shared host?

I am in a shared host that I have basic cli access. Inside public_html/ I host several addon domains, each in its own dir. Is it possible to make my main domain's document root inside another folder ...
1
vote
0answers
14 views

Startup Script for LAMP in Google Instance Templates

I am new to Google Cloud and i want to set up an Instance Template and then create an Instance Group using the template. After creating the group, i want to enable "Network Load Balancing". During ...
2
votes
1answer
47 views

Wamp Server on local machine responds to ping but port 80 comes up as closed

I recently registered the domain politicsapp.us with GoDaddy and I am trying to set up a server on my local machine with WampServer. I set it all up, but when i type that into a browser, it gives me ...
0
votes
2answers
69 views

Disabling If-modified-since / if-none-match on web server for some files

What I want to do is try to get search engines to rescan my sitemap files (plain xml files stored on server). It did recently attempt to access it but it received a not modified response (HTTP status ...
0
votes
0answers
101 views

Godaddy linux hosting The PDO extension is required for this adapter but the extension is not loaded

I'm getting following error on GoDaddy economy linux hosting. How to fix that. The PDO extension is required for this adapter but the extension is not loaded Error can be found at following ...
0
votes
0answers
12 views

Can multiple websites/domains be hosted by the same Platform as a Service [PAAS]?

Sorry if this is trivial, but I am still learning the basics of PAAS, so I appreciate your patience... Can separate websites both be hosted by a single PAAS (used via single account with a given ...
1
vote
0answers
29 views

apache/php settings to optimize website for long distance clients

Contrary to what many suggest, I decided to increase my keep-alive in apache from 1 to 5 seconds and to a maximum of 100 keep-alive requests per keep-alive connection from any one IP address. I also ...
1
vote
2answers
334 views

Plesk all hosted websites stopped

All the hosted websites on my VPS stopped working yesterday. I have not changed any settings since a week. The websites result in an ERR_CONNECTION_REFUSED. In my time zone, the websites stopped ...
2
votes
1answer
29 views

Speed of prefork+ruid2 with more connections on limited memory

Currently I am using Apache in a server with WHM/Cpanel and I'm currently using Prefork MPM with Mod Ruid2 to process PHP pages. While the setup allows it to run very fast, I'm limited to processing ...
3
votes
2answers
674 views

htaccess redirect non-www to www with SSL/HTTPS

I want a rewrite rule that redirects everything to https:// AND www. For example https://example.com should be going to https://www.example.com This is what I have: RewriteEngine On RewriteCond ...
0
votes
0answers
11 views

ZF Tool 1.6.0 Windows 8 Permissions

I'm currently installing the Zend Framework onto a local 64bit Apache install with appropriate PHP ver. Localhost works fine and Apache Monitor is reporting correctly and identifying PHP just fine. ...
2
votes
0answers
108 views

mod_proxy(_html) and a buggy Webserver (delivers text/html for JSON data)

We've got a Webserver that answers to AJAX requests by sending JSON Data to the client. Problem is that the JSON Data has the content-type "text/html" instead of "application/json" (it's an Oracle ...
2
votes
1answer
153 views

.htaccess file not caching

I have read several guides for how to write the htaccess file for caching but with no success. I asume I wrote something wrong and need some help on finding what i did wrong. Here's my htaccess file: ...
1
vote
1answer
46 views

Apache .htaccess mod_rewrite: use of [NC]

I see tons of .htacces examples containing the [NC] flag (NoCase = case-insensitive) For example the famous h5bp page use the [NC] flag a lot: ...
0
votes
0answers
36 views

Hosting htaccess redirect subdirectory to subdomain

I have simple hosting plan with domains included: Now I have the domain.com and seconddomain.com now I want to use all that domain and give them his own root directory. If I use the controle panel ...