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
2answers
24 views

Can I manipulate the DNS protocol to host websites across multiple servers?

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
2answers
16 views

error.log file in public_html which is publically viewable?

There is a file in my public_html folder called error.log which is viewable by anyone if they just enter the URL in their browser, like: example.com/error.log I'm running Apache. My question is, how ...
0
votes
0answers
15 views

Internal Server Error 500 .htaccess

For years, I have been using the following .htaccess for PHP to execute within HTML on Apache at GoDaddy: AddHandler fcgid-script .html FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .html A few days ...
0
votes
1answer
13 views

SEO advantages of /blog when forwarding via ProxyPass

We've had requests from clients via their SEO companies to host blogs accompanying ecommerce sites on theirdomain.com/blog rather than on - for example - blog.theirdomain.com As we look after their ...
1
vote
2answers
294 views

WAMP VirtualHost 403

I recently installed WAMP, and started developing on its Apache server. Given that my text editor (Sublime) didn't have permissions to write on C disk directly, I changed my default DocumentRoot to My ...
1
vote
1answer
1k views

How to configure mod_bwlimited through htaccess

The mod_bwlimited module in htaccess apparently displays an error if bandwidth is exceeded. Anyone know what options are available for configuring it through htaccess?
2
votes
2answers
65 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 ...
0
votes
0answers
14 views

Remove access to xampp from WAN [on hold]

i just set up xampp on my ubuntu machine, and i wanted to limit the webserver to local connections only. I did this: <Directory "/opt/lampp/apache2/htdocs"> Options Indexes FollowSymLinks ...
1
vote
1answer
64 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 ...
2
votes
1answer
2k views

http://www.example.com/http://www.example.com/ in Apache log?

I run a website, let's say www.example.com. On it I have a path and file, say www.example.com/path/file.html. The Apache log lists GET requests like: GET /path/file.html HTTP/1.1 Which is correct, ...
0
votes
0answers
8 views

Apache 2.4.12 & CentOS 7: DSO shared modules not being built during compile [migrated]

I have a general question. I am attempting to compile Apache 2.4.12 on CentOS 7 from source. I have read the 2.4 documentation, poured over configure -h, and searched the web, but no one seems to be ...
1
vote
0answers
28 views

File does not exist from wacky websites?

Our LAMPs website has been running slow as of late, I suspect its a SQL problem but I want to check all the logs. Can somebody explain what the following log means, and give some insight if it is a ...
1
vote
2answers
568 views

In apache, how to map site.example.com to example.com/site

I'm sure there is documentation for how to do this, but I don't know what it's called so I don't even know how to start searching. On my webserver, example.com, i have a site called site. It's ...
0
votes
0answers
10 views

set chrome permission for whole domain?

I have a website running apache. In my conf, I have this at the end: <Directory /usr/local/django/apache> Order deny,allow Allow from all AuthType Basic AuthName "Files Top Secret" ...
1
vote
1answer
35 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 ...
3
votes
1answer
138 views

.htaccess redirect not working for web alias

I have two domains at one.com: example.com and example.de I would like to redirect from example.com to example.de/en I wanted to use an A record so that example.com points to example.de and then use ...
2
votes
1answer
30 views

Why can't I redirect www to non-www on my addon domain?

I have a domain example.com in which I'm doing this to redirect all my traffic from www version to non-www: RewriteEngine On RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 ...
2
votes
2answers
384 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 ...
1
vote
1answer
337 views

Remove fb_action_ids of the URL with .htaccess

For some reason my host not let me have more than one htaccess so I have to make all the changes from the htaccess located in the root. My directory tree is as follows: ..../ ....index.html ....css ...
0
votes
1answer
56 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 ...
1
vote
1answer
502 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
130 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 ...
1
vote
1answer
45 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
1answer
26 views

http-basic auth, else placeholder-page

Is it possible to show a http-basic-auth, and when someone fails that test, show a certain HTML-placeholder-page? If so, how can I achieve that?
0
votes
1answer
62 views

How can I get a regular expression to only match an empty string? (In a .htaccess file)

I try to make a regular expression in a .htaccess file, that matches only an empty string. I have tried many things, but it seems like it’s impossible. For example, I tried ^$, but it's looking for ...
1
vote
1answer
101 views

Bypass all rules and redirect internally to another folder/file

In Apache config file, there are some rules defines like below: <IfModule mod_rewrite.c> RewriteRule ^(Category)/([^/]+)/(.+)$ index.php?module=$1&id=$2&action=$3 [B,L,QSA] ...
1
vote
1answer
34 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 ...
1
vote
1answer
32 views

Is there anything unusual or nefarious about private IP addresses in server logs?

A site I help take care of has just started getting crawled by somebody from 172.31.13.241 and 172.31.42.227 . According to WHOIS info, these are part of a block reserved by IANA for special purposes, ...
0
votes
1answer
28 views

Append encoding information to HTTP response headers

I have an old web application (not maintained anymore) of which a small part is still needed; this is displayed in iframes. Unfortunately, the old application uses ISO-8859-1 encoding (which it ...
3
votes
1answer
22 views

Require valid ServerName in httpd.conf

I have two virtual hosts, and have sites1.com and sites2.com pointing to my server. All works fine. <VirtualHost *:80> ServerName site1.com DocumentRoot /var/www/site1/html ...
0
votes
0answers
42 views

Moving subdomain to a different hosting provider

Currently my subdomain is hosted within same webhotel as my main domain. I would like to change it to point another domain (website on Windows Azure). Subdomain should be accessible all the time ...
1
vote
1answer
20 views

In httpd.conf why would you want AddType for phps?

We have an AddType as follows: AddType application/x-httpd-php-source .phps I was wondering what this was, and did some searching. It seems this is barely documented anywhere. Based on a hunch, I ...
0
votes
1answer
63 views

Chrome flags my SSL

Chrome keeps on showing me yellow triangle, 4 days ago padlock was green. I reissued the certificate and every ssl check test i found passed. Domain is buzztera.gr, do you guy know any other tool i ...
1
vote
2answers
72 views

Install my own software on VPS

I didn't have VPS before, I wanna know can I install any software on VPS? For example if I buy Windows VPS can I install Apache on that instead of Microsoft IIS?
0
votes
0answers
23 views

Brand new domain and server using URL Rewrite flagged by Google for Phishing

I set up a VM with 1and1.com and registered a domain. I'm running an app (Jira) that runs on its own Tomcat instance but I have set up URL Rewriting based on this article so that IIS can handle the ...
1
vote
1answer
76 views

Not downloading a file if download URL uses different localhost port

I have a text file and want to download it. I am working in localhost. The HTML page from which I am downloading file, is called from localhost:8080. And the file which I want to download, I am ...
1
vote
3answers
833 views

Is there a free way to SSL certify my local website? [closed]

I'm basically trying to setup my local website with SSL. All I need to do is certify it, but couldn't find a free way to do it. Most websites, like GoDaddy for instance, charge to certify your ...
0
votes
0answers
16 views

URL Rewrite not working for API

I'm attempting to create an API server for a course I'm taking and having an issue with enabling URL rewrite. I have an htaccess file and an api.php, what my goal is is just to be able to go to ...
0
votes
0answers
23 views

How to customize LogFormat for Apache Virtual Hosts?

I really need some help with this. My server has multiple virtual hosts, each virtual host has its access log, I need to be able to customize the LogFormat for each virtual host exist on server. I ...
0
votes
1answer
33 views

Enabling URL rewriting for API

I'm new to configuring API web servers and I'm trying to enable URL rewriting for the server so that a user can go to my public DNS.com/getAlbum to access a method within my api.php file (assumption, ...
0
votes
0answers
22 views

cPanel latest visitors log configuration file path

I was trying to change the LogFormat for the Latest Visitors stats to report clients' real IPs, but I couldn't find a path for it. I've already modified the LogFormat in httpd.conf file and now the ...
0
votes
1answer
27 views

Apache returning incorrect bootstrap.min.css file

Running Apache 2.2 on CentOS 7 I have a bootstrap.min.css file: /css/bootstrap.min.css It is version 2.2.1. However, when I go to http://example.com/css/bootstrap.min.css, I get a bootstrap file ...
1
vote
2answers
305 views

What are spiders trying to achieve on my site by fetching lots of non-existant urls such as various versions of phpMyAdmin?

I've recently set up a build server that compiles Java source on Github webhooks. I created a public page for downloading latest .jars with a top level domain and I'm logging requests to it. What are ...
1
vote
0answers
25 views

mod_rewrite cause errors in apache error.log

In Opencart I have enabled SEO URLS, which is working fine, unless that I see errors in apache log: [Thu Apr 16 22:53:38 2015] [error] [client xy] File does not exist: ...
1
vote
0answers
65 views

I'm only able to reach my site using www, but not non-www

I had a website at example.com. I created another website (example.hotelrunner.com) using HotelRunner and changed domains. I did that by changing the A records and CNAME at Netfirms. Now example.com ...
1
vote
0answers
28 views

Security and Apache Methods

I occasionally get annoying POST requests but one lately caused a 500 error. Not a biggie really, but it got me thinking. My site does not have but one form. Outside of this, POST should not exist ...
0
votes
1answer
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 ...
2
votes
1answer
546 views

How do I use htaccess to make a short URL to a MediaWiki page?

I'd like to rewrite /liam to /index.php/Liam_Edwards-Playne. I've currently written this below in the appropriate .htaccess file but it is still returning a 404: RewriteEngine On RewriteRule ^/liam$ ...
1
vote
1answer
30 views

How to eliminate /wiki/ directory in rewrite rule on a site dedicated for a wiki

I have set up a subdomain of my site (for the purposes of this question I'll call it wiki.example.com), installed a wiki there, and set up URL rewrite according to the article on MediaWiki's website ...
1
vote
1answer
40 views

Problems with apache rewrite

I am running tomcat on centos6. I'm trying to configure Apache as a front end to tomcat so I could access: help-test.example.com:8080/4-3/help help-test.example.com:8080/4-2/help ...