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)

1
vote
1answer
72 views

Apache - .httaccess RewriteRule from domainA to domainB

Problem: I have a website (mywebsite.com) that was, and partly is, indexed in google. Somebody pointed their own domain (theirsite.com) name to my server and DNS, so it resolves with my IP. Now, ...
1
vote
1answer
49 views

Prevent virtual host on same server interact on apache [duplicate]

Possible Duplicate: Prevent virtual host on same server interact on apache I have a vps apache 2.0 webserver, with multiple domains and multiple IPs set. In document root /var/www/html/ I ...
1
vote
0answers
127 views

Best practice for suEXEC on complex sites?

What is best practice for using suEXEC on complex sites? We've got a site running under a single vhost, and we want to be able to run different PHP web apps eg /forum /wiki /crm as their own UIDs, to ...
1
vote
0answers
146 views

Can I use both Digest and Basic Authentication on the same directory in Apache?

The reason I would want to do this is to support very old browsers (e.g. IE 6) that does not implement the more secure Digest method. If all new clients advertise the types of authentication they ...
1
vote
0answers
26 views

Dedicated Servers: Is one better then two for LAMP pseudo HA setup? [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I know there are zillions of commentary about hosting out there, but I haven't read much about this. Our current ...
1
vote
2answers
96 views

reduplicate request in apache logs

1. Symptom: I found lots of requests for the same resource on Apache logs, like this: /image/default/dHtmTreeImg/iconUnCheckAll.gif HTTP/1.1" 200 120 10.83.140.23 - - [29/Dec/2011:08:50:10 +0800] ...
1
vote
0answers
2k views

Error 504 with Apache and php [closed]

My web application works fine in development environment, but on production server gives off: 504 Gateway Time-out The server didn't respond in time. Edit: I have traced the problem to a ...
1
vote
2answers
210 views

Mod rewrite rule question/help

I have the following ruleset in my .htaccess file which basically rewrites my php pages and makes them appear as subfolders, so for example, http://www.mysite.co.uk/about-me/ points to ...
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
2k views

Apache httpd Problem

I am getting intermittent issues with my site. Pages often hang with huge loading times and sometimes fail to load. The httpd error logs contain the following: [Wed Feb 23 06:54:17 2011] [debug] ...
1
vote
1answer
74 views

wrestling with some rewrites for Apache

I have upgraded my gallery2 to gallery3, and notice that some links no longer resolve correctly. Since the proper way is to redirect these with a 301, that is the way I'm going. The following series ...
1
vote
2answers
2k views

HTTPS To http redirect issue. How to overcome?

Have already seen suggests on how to rewrite https to http. currently using this technique : RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] RewriteRule ^(.*)$ ...
1
vote
1answer
138 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 ...
0
votes
4answers
454 views

I want to park my domain www.b.com to www.a.com. if the user visits b.com, I want the browser url to display a.com

I want to park my domain www.b.com to www.a.com So far is working, but if the user visits b.com, I want the browser url to display a.com Is there a way around it?
0
votes
1answer
109 views

can mod_rewrite be used for this problem?

We used to have a URL http://www.abc.com/index.php?itemID=144 which is moved to http://www.abc.com/index.php?itemID=1556 we want our users which are hitting the above url(144) to reach to 1556. ...
0
votes
4answers
518 views

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

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
1answer
2k views

MAMP not working as 'localhost' but works with “127.0.0.1”

I just installed MAMP on Mac OSX 10.8.2. When it is started, I'm not able to access the server through http://localhost:8888 but when I visit http://127.0.0.1:8888/ and it works fine. Why is it so? ...
0
votes
2answers
63 views

Apache .htaccess URL rewriting is not working

I am using this code in .htaccess but the last line not giving any response: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ...
0
votes
2answers
588 views

Monitoring load/resource drain of individual scripts on apache

We have a website and for some reason lately its been grinding our server to a halt. It has had a spike of traffic, but even still that spike is only possibly 1k or 2k. We installed eAccelerator PHP ...
0
votes
1answer
228 views

How to force a web browser to interpret other file extension (but contains plain text) as a text file?

I'm currently engaged with a web based application that needs to show text files via directory listing in the web server (Tomcat). The text file has an extension of .inp and .trg, it seems that IE8 is ...
0
votes
1answer
186 views

just another mod_rewrite question

from the url xxx.yyy.site.com just need to redirect to xxx.site.com Thanks for the help, sorry I have no regex/rewrite foo.
0
votes
1answer
678 views

Rewrite URL to a PHP script with parameters

I'm trying to create a service that you give it a URL like http://myhost.com/34.png and it will return the result of the script http://myhost.com/create_image.php?count=34. I know this is possible ...
0
votes
2answers
52 views

Why can I access a website through IP address but not by it's domain name?

I'm using CentOS, LAMP and Wordpress.org I have added and edited a virtual host on the apache server. For servername I put the hostname that is output when I typed the command hostname. Now I'm ...
0
votes
1answer
530 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 ...
0
votes
3answers
382 views

Stopping Apache from serving requests for content from other sites

When looking at my Apache2 access logs, I occasionally see GET requests asking my server for a page on a completely different server. For example: xx.xx.xx.xx - - [18/Jan/2012:07:12:10 -0500] "GET ...
0
votes
1answer
489 views

lfd on ns3.domain.com: Excessive resource usage: Account (26661)

We lease a dedicated server with the following specs: Dual Hyperthreaded Quad Core 12GB RAM 750gb RAID1 We recently upgraded from a Dual Core/2GB RAM due to server load issues. We are ...
0
votes
1answer
1k views

How can I fix an Apache redirect loop

I have a strange Apache/WordPress redirect loop that I can't seem to figure out. Here is the relevant logs and other info: http://pastebin.com/E1afW2vw It seems that the page request gets made, and ...
0
votes
2answers
85 views

is there a way to write .htaccess shorter?

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

301 redirect all pages with a specific extension

I have a website that is not on ASP anymore, it's a Drupal 7 website now. I need to use an .htaccess file to redirect with code 301 all pages with .asp extension to the 404 page or a specific URL. ...
0
votes
1answer
176 views

htaccess redirect pages that don't exist

I have a website that has a little over 100 members. Each member gets a replicated website, and by default the software we use sets up their replicated website at a url like: domain.com/?username ...
0
votes
1answer
131 views

Do Apache virtual hosts perform better when listening to different ports?

I plan to use mod_proxy to route requests to Apache virtual hosts based on the URL. example.com/foo/x is routed to foo.example.com/x, example.com/bar/x is routed to bar.example.com/x, etc. Are there ...
0
votes
3answers
528 views

Make Apache treat ASPX as html

I've swapped from ASP.NET to .PHP for cost reasons. As such, I want the people to be redirected from .ASPX to its equivalent .PHP. If I create the .aspx with HTML, the file is simply displayed in ...
0
votes
2answers
1k views

Apache Vs. lighthttpd? [closed]

I've recently bought a VDS server with 768MB RAM. All of my RAM is being eaten by Apache(286MB). As lighthttpd is lighter and needs less memory I want to switch to that. I just want to make sure I ...
0
votes
3answers
110 views

How to approach redirecting thirty domains?

I have a client with thirty some domain names. All bought for the reason of being close to a competitors domain. They want them all to redirect to their main portal. Right now I have them pointing to ...
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" ...
0
votes
2answers
417 views

domain.com to www.domain.com .htaccess redirect working except one subdir

I've setup a redirect in .htaccess to consolidate domain.com to www.domain.com traffic on our Apache server. Looks like this: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ...
0
votes
2answers
1k views

.htaccess rule not working without HTTP redirect [R]

I am using the following .htaccess with Wordpress to remove index.php from the visible URL. This works but forces an http redirect so the URL changes in the browser window. If I remove the [R] it no ...
0
votes
2answers
7k views

Get the number of concurrent users in Apache?

We want to know how many concurrent users the apache is serving at one time? Can I do it by installing some statistics tools? I tried webalizer but it only shows hourly hits, not the number of users. ...
0
votes
4answers
5k views

Chmod 777 to a folder and all contents on Apache web server

I have just got new hosting for my website and I have a directory /www which I put all my website files within and a folder in that directory called 'store'. Within 'store' is several files and ...
0
votes
1answer
3k views

“Rule caching” in .htaccess - How to force apache to re-read a modified .htaccess?

I am reorganizing the link structure of a dynamic php-based site of mine. What I am trying to obtain is: redirect old links onto new ones; create new RewriteRules for new links, since every 'link' ...
0
votes
3answers
3k views

What are the causes of a 416 Error?

One of my visitors from my website informed me that every so often (quite rarely actually), when trying to visit my website, he gets a 416 Error: Requested Range Not Satisfiable I've never heard of ...
0
votes
1answer
133 views

Switch to https

I'm looking to use an .htaccess file to use mod_rewrite to switch the protocol from http:// to https:// when someone hits my website. For instance, once someone goes to: http://www.mywebsite.com/ ...
0
votes
1answer
112 views

Grep directory name

Need a script to grep within a directory for folders named by emails (so looking for the @) to then search the apache logs to see if the email address grep'ed has accessed the website today. Then ...
0
votes
1answer
96 views

Is there a minimal, pre-built solution for hosting a large collection of files?

My Google-fu has failed me on this one. Every time I search for something like this all I get is a bunch of vulnerability reports. I feel like this should be pretty straightforward, but I'm not having ...
0
votes
1answer
359 views

How to use apache mod-rewrite to remove trailing semi-colon on cookie?

We have the following cookie set by a product: Set-Cookie: SSOCookie=T7ngsCmzC2FEq5p2a7o%3D; path=/; domain=.demo.com; We would like to use Apache to remove the trailing ; which doesn't match the ...
0
votes
2answers
106 views

Disable serving specific files from web directory based on hostname used

I have very specific problem and I don't even know if I am asking at right place and if it is even possible. I have two domains, lets say domain1.com and domain2.com. Both domains share same root ...
0
votes
2answers
84 views

RewriteRules targeting a directory result in a gratuitous redirect

I have a standard CMS-like RewriteRule set up in my .htaccess: RewriteRule ^(.+)$ index.php?slug=$1 Let's say I have a directory called "foo" in the root directory. For some reason, if you hit the ...
0
votes
1answer
93 views

Pretty URLs for dynamic links generated based on a 3rd party soap web service

We have a 3rd party web service which we interact with via Soap. In this regard we query the 3rd party for resources, construct a home page and all links generated on this index page are referencing ...
0
votes
1answer
21 views

How do you test non-live sites before switching DNS?

I have a few websites that I need to move to a new server - how would I test that they work before switching DNS? What URL would I navigate to?
0
votes
1answer
28 views

Check to see if emails are getting automatically sent

I have a Drupal site that is supiosed to send emails every time new content is created. The emails are sent to admin users so that they can check the content. None of the emails are making it to the ...