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

htaccess doesnt work in subfolder

I'm using xampp with apache on my windows machine. My directory structure is: C:/xampp/htdocs ---------------/Sync --------------------/ProtectedFolderA ...
0
votes
2answers
168 views

Help with Apache mod_rewrite rules

I want to change some legacy URL's like this: /modules.php?name=News&file=article&sid=600 to this: /news/story/600/ This is what I have tried: RewriteEngine on RewriteCond ...
2
votes
1answer
350 views

Apache rewrite rule that matches a specific query string

I need to rewrite a specific wordpress url to a 404 error: ?page_id=15 => 404 How can I match the query string? Apparently Apache doesn't feed that to the rewrite mod...
1
vote
1answer
129 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 ^/(.*) ...
1
vote
1answer
69 views

How do I set up an `A record`?

I have Apache installed on an EC2 instance (with an Elastic IP). I successfully used NameCheap's DNS tool to configure routing of www.mydomain.com and mydomain.com traffic. If I have a web ...
1
vote
0answers
93 views

Apache Rewrite to folder no longer working after server upgrade [closed]

The following were both working perfectly for the last 2 years but after a server upgrade the first, with an extra folder is no longer working: RewriteCond %{HTTP_HOST} ^www\.mayoaccommodation\.com$ ...
2
votes
1answer
2k views

How can I force a VirtualHost in Apache to not listen for undefined subdomains on 443?

In /etc/apache2/sites-available/example.com: <VirtualHost *:443> ServerName www.example.com DocumentRoot /var/www/example.com/htdocs SSLEngine on ...
1
vote
3answers
162 views

How to remove a file from url using mod_rewrite

I want http://www.foo.com/ to internally point to /var/www/home.php and http://www.foo.com/home.php to be redirected to http://www.foo.com/. Thus, I would like to fix the old ...
2
votes
1answer
136 views

Show Cloudflare requests in apache log

I have a number of sites using cloudflare as a CDN with the apache mod_cloudflare installed to restore original visitor IPs to my server logs. Does anyone know of a way I can make the logs identify ...
4
votes
2answers
136 views

I want to use gzip compression in Apache

I want to enable gzip compression for acethehimalaya.com. Can anybody please tell me what is the best way of achieving compression in an Apache Webserver?
2
votes
1answer
53 views

Handling APACHE file caching

I have used .htaccess to cache images, css and javascript files on my server for up to a month. My problem is that some users get updates that I made recently and all works normally while some user ...
1
vote
2answers
138 views

SVN Checkout folder as local webroot

I have XAMPP installed and running. I have an SVN working directory (WD) on my local that checks out from the repository. I set up a virtual host in xampp to point to my WD, but my browser (FF) gives ...
2
votes
1answer
279 views

Replace 404 with 301 to other subdomain

We have two main subdomains on our site: www.example.edu and php.example.edu. Virtually all of our content is on www.example.edu, but there are a few standalone apps hosted on php.example.edu. ...
3
votes
1answer
463 views

Disallow all user agents except one using .htaccess?

I've been struggling to get this .htaccess working. The aim is to disallow all user agents besides my app. The app sends a GET request with a user agent of lets say 'AcmeUpdater'. Whenever I try to ...
2
votes
2answers
679 views

getting 500 intenal error when setting 301 redirect using .htaccess

I am trying to use a 301 redirect to direct users and bots to my new site but when I put the .htaccess live i keep getting a 500 internal error shown. The site is actually a subdomain which i want ...
2
votes
1answer
386 views

Error 500 on phpMyAdmin via https from “self-signed certificate”?

I have used Cpanel to generate and install a self-signed certificate for HTTPS and now that I have installed phpMyAdmin once I access phpMyAdmin via HTTPS it throws out an error 500 message. Why is ...
0
votes
1answer
537 views

SocialEngine Installation Error 500 (Step 3)

I'm trying to install SocialEngine (clean install, empty database, legal license key) but I ran into this error message 500 at Step 3 of the installation: Step 3: Setting up MySQL Database MySQLi ...
1
vote
1answer
341 views

Apache rewrite returns error 500

I'm trying to figure out what I'm doing wrong with this .htaccess rewrite: Options -Indexes RewriteEngine on RewriteBase /test/site/ RewriteOptions MaxRedirects=10 RewriteCond ...
1
vote
2answers
118 views

Hosting an apache server from my mac

I created a website with PHP and JS. I want to send my IP address to a friend who is in another state and let him see it. My site is loaded by xampp. How could I do this?
2
votes
1answer
74 views

Handling request after installing MAMP (no DNS setup yet)

I've just installed MAMP on my mac machine and checked the server is working by looking at localhost. I looked up my IP address by ifconfig. When I use another machine, I still can't get connected to ...
4
votes
1answer
355 views

How to organize /var/www/ for multiple users and vhosts in apache

I've been creating new directories for each site in the var folder like this: /var/www -- localhost -- owned by localuser:www-data (+setuid/setguid) /var/www-somesite -- somesite.com, ...
3
votes
1answer
407 views

Apache Virtual Host does not work

I've problems setting up a virtual host on windows7, so that I can develop multiple pages on my localhost. To set up the virtual Host, I've edited 3 Files: httpd-vhosts.conf in apache\conf\extra ...
2
votes
3answers
285 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
845 views

xampp not working with DynDNS

My setup consists of: a XAMPP 1.7.7 installation, with Apache configured to listen to port 8080 dyn.com to make the projects accessible from the web ( 8080 shows up as 'open' when checking with ...
0
votes
1answer
273 views

Where is my Tomcat running on my virtual server?

According to what I know; Apache and Tomcat are listing on different ports by default. If I have both of them running locally then: localhost -> Apache home page (port 80) localhost:8080" -> Tomcat ...
1
vote
1answer
124 views

how can i let my friends visit my webserver?

How do I make it so that my friends can visit my localhost website by typing in my IP address into their browser address bar? I'm using XAMPP what steps do i need to take etc.
1
vote
3answers
504 views

Why isn't my PHP file running?

I recently installed Apache and later installed PHP too. When I browse to http://localhost/index.html it displays the default Apache page "it works". But when i try to run ...
0
votes
1answer
227 views

htaccess - “detect” url and redirect

Idea is: if URL = "http:/localhost/site/" else if URL = "http:/localhost/site" redirect to "http:/localhost/site/index.html" Can this be done with .htaccess / Apache mod_rewrite and how?
3
votes
2answers
1k views

Apache2 virtual host localhost doesn't render CSS when offline because of absolute path

I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
1
vote
1answer
366 views

Congifuring Red5 Server to run on localhost

I just installed the red5 rtmp server on my machine and tried to run the demo. The only thing that i see is "connecting to server" but it never gets connected. I have gone through most of the ...
1
vote
2answers
6k views

NginX redirect to PHP file if image does not exist on file server

This is what I am trying to do. I am not familiar with Nginx enough to create custom rewrite rules like you can with Apache. It would be greatly appreciated if someone could help me with the Nginx ...
0
votes
1answer
107 views

Spiders crawling broken links

Tl:Dr Unknown bot crawling the same broken (HTTP 400) URL over and over again. Different User Agent and different country of origin. The Problem It seems at least once a week we're getting a big ...
1
vote
2answers
347 views

Change name of audio file for download

I have some mp3 files which are named "my-audio.mp3" but now the client wants the visitor to be able to download and save these files to their desktop. He doesn't like the name with the hyphen and ...
4
votes
2answers
9k views

Redirect Permanent and https

I just set up HTTPS on my server, and I have an issue with redirect permanent. Example http://domain.com/index.html it redirect me to http://www.domain.comindex.html The / (tail ending slash) is ...
5
votes
5answers
12k views

“File does not exist” in apache error log

This is an example of an error in out log file: File does not exist: /var/www/website/female, referer: http://www.website.com/female/dresses/A-Dress-Black "/female" doesn't exist, because we use ...
5
votes
1answer
354 views

How should incorrectly encoded URLs be handled?

Just recently noticed that some sites link with the URL incorrectly percent-encoded, to which my server (LAMP) responds with a 404 Not Found. For example, for a URL of mine like this: ...
3
votes
2answers
70 views

Requests in form: http://www.site.com/one/two/three/ in Apache 2

how can I configure Apache server, to mantain requests such as: http://developers.facebook.com/docs/reference/fql/ (i mean the /one/two/three)? What's the name of this technique and how it is ...
1
vote
1answer
140 views

Subdomains regarding name servers/domains

I know how to configure subdomains like sub.example.com on Apache etc. My question is, do I need to make any changes to the name servers/domain that is provided to me? Would it work the same as ...
6
votes
3answers
162 views

Use Apache to prevent a PHP script from connecting to a specific domain

Is there a way to prevent apache from connecting to a specific domain e.g. somesite.com? I have a PHP script that trying to connect to specific host, and I would like to prevent that.
4
votes
1answer
2k views

How to write a generic .htaccess file rule, regarding RewriteBase

The following rule in my .htaccess works just fine for routing calls to index.php: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] However, this does not ...
7
votes
2answers
2k views

Why does my site only work with a www in the URL?

I'm a bit confused as the following points: There is a simple text website, with no javascript, that works only with the prefix. http://www.mysite.corporation.com works but ...
0
votes
1answer
1k views

Most efficient and SEO & Google Analyitics Friendly way to redirect

I am looking for the most efficient way to redirect users to different web pages on my server using a keyword off of the main domain. So http://www.example.com/keyword might take you to a longer URL ...
1
vote
1answer
85 views

Apache2 “pseudo” doc root

I have several folders in my /www folder that contain various applications. To keep things organized, I keep them in their own folders -- this includes my base application. Examples: phpmyadmin = ...
2
votes
0answers
441 views

RewriteBase has to change when using UserDir

I have setup our Apache server to use UserDir This mean our urls are: http://dev.server.com/~username/drupal/html/ Before our URLS were: http://dev.server.com/drupal/html/ In the 2nd case I ...
3
votes
2answers
47 views

making www.foo.com go to srv5.bar.net/~foo

What I need accomplished is when a person out there in internet-land types in www.foo.com they are actually getting served content from srv5.bar.net/~foo I have root access to both the nameserver ( ...
2
votes
1answer
3k views

Getting 403 Forbidden after changing webroot

I am running Ubuntu with Apache (LAMP stack). When I changed the webroot from /var/www to /media/data/www, I keep getting 403 Forbidden even after chmod-ing the directory + files to 777. What did I do ...
1
vote
1answer
1k views

Symbolic link not allowed or link target not accessible: /var/www on Ubuntu 11.04

I am getting a 403 when i access http://mayfieldafc.local/ upon looking in the Apache logs I am getting: [Wed Nov 16 12:32:59 2011] [error] [client 127.0.0.1] Symbolic link not allowed or link target ...
2
votes
1answer
1k views

How to avoid “chunked” Transfer-Encoding?

How to avoid chunked Transfer-Encoding ? Is there any benefit with this encoding? Below is what appears as part of Apache Web Server (V2.4) header message: Connection: Keep-Alive Content-Type: ...
0
votes
2answers
102 views

How to transfer a website hosted online to my Virtual Host

I'm doing some work on a webpage, meaning I gotta modify a few things. As a result of this I installed apache and all the things that come associated with it, and also installed Joomla, and I got ...
0
votes
1answer
102 views

Name of virtualhost (apache)

I need to create virtualhost with name "virtualhost_name". To access it with http://virtualhost_name I have a pattern: <VirtualHost *:80> ServerAdmin jan@novak.cz DocumentRoot "path" ...