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
2 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 ...
2
votes
0answers
13 views

Trouble with 301 redirect of old naked domain to new domain

Using the .htaccess I am trying to setup a simple 301 redirect which does the following: http://exampleA.com redirects to http://exampleB.com http://www.exampleA.com redirects to http://exampleB.com ...
3
votes
1answer
165 views

CSS and JS are loaded from the IP address rather than from the appropriate subdomain host name

I have one VM (LAMP) with a static IP. There are two Subdomains configured on this Machine. If i browse one of the subdomains, it executes the files specified in its DocumentRoot. The problem here is ...
0
votes
0answers
10 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 ...
3
votes
3answers
2k views

Rewrite in Mediawiki, remove index.php, .htaccess

I've just installed Mediawiki on Apache and I want the URL should be: localhost/Main_Page/ localhost/Special:Recent_Changes ... instead of: localhost/index.php/Main_Page/ ...
2
votes
1answer
56 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 ...
2
votes
2answers
145 views

Find domain on access_logs in Apache

I am in charge of a server that is receiving strange requests for a file that doesn't exist and it never existed and I am trying to find which account they are coming from (CentOS + Plesk) The logs ...
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 ...
3
votes
1answer
70 views

Getting 406 on IE after Google redirects my site

I have a WordPress blog. When I search the posts from my site in Google, the results appear and on clicking the result I can open that particular post on my site. But while doing the same on Internet ...
5
votes
4answers
86 views

Can I manipulate the DNS protocol to host websites across multiple servers and direct users to the geographically closest?

Let's pretend that I'm hosting a very big and popular website. Let's also pretend that I have many web servers spread out all around the world. Each web server containing identical files. If I make ...
1
vote
1answer
52 views

Granting a developer cPanel access but disabling downloads

I need to hire a dev to do some work on my site, however as it is a very large one and valueable at the same time, i don't want to risk a dev stealing the work and mechanisms behind it. I will need ...
1
vote
0answers
20 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: ...
2
votes
2answers
132 views

Limit access to rewritten uri based on IP address

I'd like to limit access to a Drupal 7 registration page (/user/register) from certain IP addresses. I've tried to set the apache directive, but it's still letting me access it from an IP that isn't ...
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 ...
2
votes
2answers
834 views

How to hide awstats url parameters

currently in order to access statistics on my site I access this link: www.example.com/awstats/awstats.pl?config=awstatsconffile.org all is working fine, but what I want to achieve is simply this: ...
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 ...
1
vote
1answer
286 views

htaccess sitemap.xml rewrite to /sitemaps/$_SERVER[“MYVAR”]/sitemap.xml

I am trying to update htaccess to write as following: htaccess sitemap.xml rewrite to /sitemaps/$_SERVER["MYVAR"]/sitemap.xml This rewrite should only occur if sitemap.xml is requested in root ...
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?
1
vote
1answer
79 views

Apache 2.2 Not Identifying Safari with HTTP_USER_AGENT

I have a web server that has to meet PCI compliance requirements. Their latest round of policy changes have removed support for Safari, after having removed support for Windows XP based IE clients. ...
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 ...
4
votes
0answers
15 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 ...
3
votes
3answers
1k views

Replace %26 in htaccess to %2526

I would like htaccess to rewrite example.com/something_%26_else into example.com/something_%2526_else I'm importing a bunch of pages that have ampersands in the title from MediaWiki. These are ...
1
vote
3answers
97 views

Simplify URL rewrites in .htaccess?

RewriteRule ^([A-Za-z0-9_\-]+)$ /userviewproducts.php?category=$1 [L] RewriteRule ^([A-Za-z0-9_\-]+)/$ /userviewproducts.php?category=$1 [L] RewriteRule ^([A-Za-z0-9_\-]+/[A-Za-z0-9_\-]+)$ ...
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> ...
3
votes
2answers
683 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 ...
2
votes
1answer
93 views

Subdomain htaccess rules

I have the following .htaccess in my root: DirectoryIndex index.html index.php Options +Indexes # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ...
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 ...
1
vote
1answer
248 views

Apache htaccess - modify query string with mod_rewrite

I've recently changed scripting on my website, and this has resulted in a few 404 errors as some very old queries are no longer being redirected correctly. I've been trying to create a rewrite rule ...
2
votes
2answers
72 views

Rewrite everything that is not a file

I want to have everything that looks like this: /1/2/3/4/5/[...] to redirect to this: /index.php?u=/1/2/3/4/5/[...] unless the requested string is a specific file. So anything that doesn't have ...
3
votes
1answer
597 views

Using mod_speling with multi-level htaccess and rewriterules

We recently switched formats for managing our 301s. For the most part, everything went well, but it seems to have stopped mod_speling from working properly. Here's what we changed: Old ...
1
vote
1answer
154 views

Wordpress, Apache and Nginx: permalinks and cache

I have a server with Ubuntu 14.04.1, Apache at port 8008 and nginx at port 80 as a proxy for Apache. It runs a website based on Wordpress. I use Wordpress's plugin WP Super Cache with the following ...
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: ...
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
53 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 ...
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 ...
8
votes
4answers
4k views

Forcing SSL and www in .htaccess

I'm looking for a way to force SSL and www. I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: ...
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 { ...
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
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
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
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 ...
1
vote
1answer
140 views

How do I get rid of the “www” with mod_rewrite?

I want to get rid of the "www" in front of my domain, and I'm trying the following, but it's not working: RewriteEngine On RewriteCond %{HTTP_POST} ^www\.example\.com [NC] RewriteRule ^/(.*) ...
6
votes
1answer
959 views

How to internally rewrite a page when requested from specific HTTP_HOST

I have a Drupal site, example.com, and our client has a campaign that they're promoting for which they've bought a new domain name, campaign.com. I'd like it so that a request for campaign.com ...
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: ...
6
votes
5answers
1k views

Tool for clickstream anlyzing of Apache logs?

Are there any good tools to analyze the clickstream of individual users in Apache web server logs? For example, I'd like to be able to click on a visitors IP address and see all pages the user ...
3
votes
2answers
572 views

Require domain alias to show in browser address bar

Similar to question posted here (but not related to sub directories): .htaccess redirect of domain name alias to main domain but must show up as the alias domain I am trying to direct traffic from an ...
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' ...
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 ...
2
votes
3answers
300 views

Mod Rewrite question

Is there a way to rewrite http://localhost/embed/player.swf?file=http://www.youtube.com/watch?v=7yKDhm4_-90 to something smaller? or is there a way to change this into ...
1
vote
1answer
289 views

How to block access to a sub-site with mod_rewrite?

Let's say I have the sites siteA.com and siteB.com. They are hosted such that siteB.com actually points to siteA.com/siteB. How can I block someone from visiting siteA.com/siteB using mod_rewrite? ...