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

Why does Apache parse .htaccess if accessed through the main page and not through a VirtualHost?

I have two websites. One is hosted on /var/www (www.example.com) and the other is /var/www/test (test.example.com). The second is a VirtualHost. I wrote a .htaccess (I'm using it to mod_rewrite), put ...
1
vote
1answer
9 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. ...
1
vote
1answer
63 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 ...
9
votes
4answers
19k views

How to Change the www root directory on WampServer

How can i change the root directory of the currently installed wampserver to some other directory.
0
votes
1answer
31 views

Vanity URLs with .htaccess and PHP?

I need to create a vanity URL redirect using htaccess and PHP. My requirements are: If a user writes example.com/users/foobar The client will be redirected to for example: profile.php?user=foobar in ...
0
votes
1answer
35 views

Virtualhost config: routing and wildcard usage

My VirtualHost config is below: <VirtualHost *:80> ServerName www.abcd.com ServerAlias abcd.com DocumentRoot /var/www/abcd/html </VirtualHost> I want to ...
3
votes
1answer
175 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
2answers
427 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
44 views

how can i display the MD5 or SHA1 of files in a web server directory?

When you don't have an index.html, most web servers will show a list of files in the directory. Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with ...
3
votes
1answer
36 views

Server does not lookup www or other subdomains

I have some problems, and I think that it's related to DNS Records. I can't open my website by www. or access any sub-domain. These are my DNS settings: example.de. 14400 IN A ...
1
vote
1answer
362 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
72 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 ...
0
votes
0answers
3 views

What should I look for when getting a web host for a Wordpress site and php API's for my mobile applications? [duplicate]

I am an iOS developer and I want to expand and get a server (not to buy it, web hosting...i guess). I want a place where to put a site(probably WordPress site&blog), and a place where I can put my ...
1
vote
1answer
523 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
138 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
2answers
19 views

Google PageSpeed Insight: redirecting non-www to www does not use cache version

If I test my website with Google PageSpeed, I get a lower score if I test mydomain.com than if I test www.mydomain.com. In the first case, Google complains my server took too much time to respond. I ...
3
votes
2answers
94 views

redirect 204 with htaccess if url contain certain string

I get tons of url with "undefined" added at the end of url, consisting about 20% of my pageview. I tried to check the troubling script source and can't find it. Tried some solutions but none of them ...
0
votes
1answer
81 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 ...
0
votes
1answer
25 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 exists and it never existed and I am trying to find which account they are comming from(CentOS + Plesk) The logs ...
1
vote
1answer
40 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 ...
0
votes
2answers
33 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 ...
0
votes
1answer
21 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 ...
0
votes
1answer
23 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 ...
2
votes
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
1answer
49 views

Have disabled apache site config file 000-default.conf, but it still seems active. Why?

I added a file mysite.conf to my apache sites-available folder with the correct settings, then enabled it and reloaded apache, and it isn't working. I want to disable the default site config as ...
2
votes
2answers
81 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
1answer
14 views

Default Apache webroot different to what I expect; seems to be /var/www/html rather than /var/www

I have a new installation of Apache in Ubuntu 14.04.2 The /etc/apache2/apache2.conf file contains: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None ...
1
vote
1answer
49 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 ...
1
vote
1answer
108 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 ...
0
votes
1answer
37 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?
1
vote
4answers
177 views

How can I rewrite a subdomain to go to a specific file in a specific folder?

I've done searching for my answer and have tested a few solutions, but nothing has worked so far. I'm trying to get a URL like this http://baseball.sports.com to rewrite to ...
1
vote
1answer
121 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] ...
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, ...
1
vote
2answers
32 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 ...
1
vote
2answers
351 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
0answers
47 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
590 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
11 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" ...
2
votes
1answer
48 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 ...
1
vote
1answer
54 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 ...
1
vote
1answer
33 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
48 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
24 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
52 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
24 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
80 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
80 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
29 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
164 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
870 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 ...