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)

4
votes
5answers
654 views

Is there an easier way to implement 301 redirects when converting a site to WordPress

I have just converted a website to WordPress. The old site has hundreds of hard-coded html files, and the new site does not match the old site's directory structure or file naming system (bad SEO in ...
1
vote
2answers
828 views

How do I force a www subdomain on both HTTPS and HTTP?

For whatever reason I can’t seem to get this right. I’ve looked at many examples on here and on the Apache website. I’m trying to force www.example.com instead of example.com on both HTTP and HTTPS, ...
1
vote
2answers
949 views

How to identify the client is a search robot?

I have built my entire site using AJAX (indeed it's GWT). I have also implemented AJAX crawling proposed by Google. However, after the implementation, I found that neither Yahoo , Bing, nor Baidu ...
2
votes
1answer
509 views

Problem with Expires/Cache-Control Headers

I'm using Apache 2.2.16. I've got the following HTML file in my htdocs folder: <html> <link media="screen" type="text/css" href="/css/test.css" rel="stylesheet" /> ...
4
votes
4answers
261 views

How to restrict access to my site using htaccess

How to disallow access to site except me?
0
votes
1answer
479 views

Redirecting dynamic pages to static pages URL

I decided to convert all my dynamic pages to static pages URLs. I used to have "/contactUS.php" and now I want the page to be served as "/contact-us". I used to following rule n .htaccess: ...
1
vote
1answer
806 views

Enforcing a specific order for cookie headers

We have an application that cares about the order of cookie headers. It shouldn't, since this isn't mandated by the standards and indeed we're getting the headers in various different orders So we ...
3
votes
1answer
352 views

How do I normalise a URL from a folder to a subdomain?

I have a mybb forum hosted at a folder inside my site, which can also be accessed via a subdomain. I would like to configure it so that if someone would enter the folder it would automatically be ...
29
votes
7answers
72k views

What is the best Apache logs Analyzer? [closed]

What real-time log analyzer can you suggest for Apache access and error logs? There is a list of web analytics software on wikipedia, but it would be great to hear opinions from people with ...
1
vote
2answers
1k views

How to add an exception to this rewrite rule

I need to change this so that one file in wp-admin is not forced through https: # add a trailing slash to /wp-admin RewriteCond %{REQUEST_URI} ^.*/wp-admin$ RewriteRule ^(.+)$ ...
0
votes
1answer
663 views

How to hide awstats url parameters

currently in order to access statistics on my site I access this link: www.mysite.org/awstats/awstats.pl?config=awstatsconffile.org all is working fine, but what I want to achieve is simply this: ...
2
votes
3answers
1k views

Why is a # sign added to the end of URLS?

Note: I'm asking this from the perspective of the site developers (trying to help someone there). not as a user. Please don't forward this to superuser.com. It's a server admin question. Have a look ...
0
votes
1answer
852 views

Apache 2 virtual host configuration for subdomain redirection

I'm trying to set up a mail subdomain on my site that will simply redirect to my Google Apps mail account. I thought I could use the Apache 2 vhost configuration below, but it's not working: ...
2
votes
1answer
171 views

show content on domain.com from a sub directory

I have a domain that looks like domain.com on the server files look like: <www> <mydirectory> <otherstuff> <asubdomain> index.html .htaccess ok, so when you open the ...
3
votes
1answer
75 views

How do I differentiate 404 messaging with no dynamic language ability on the web server?

Depending on the type of page visited (for example, “static” content vs. product page), we have a requirement to show different error messaging when the page requested is not found. Given that we are ...
2
votes
1answer
572 views

What are the AllowOverride settings if you're hosted on GoDaddy?

I'm looking for the AllowOverride setting for GoDaddy hosting, does anybody know where I can find that?
0
votes
2answers
181 views

rewrite rule if iphone?

just need one url on my site to check if its a mobile device and then rerite the url accordingly. want to rewrite; /play-reel/miranda-bowen/playpeaches-and-cream to ...
3
votes
2answers
1k views

How to configure apache to allow access to subdomain on my local ip address

I would like to have others inside my local network access resources on my computer at outsideprojects.192.168.0.10. I am running Apache and have a virtual host configured so I can access it at ...
0
votes
1answer
125 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.
0
votes
1answer
94 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 ...
7
votes
2answers
314 views

Is there any way to diagnose which PHP or Perl scripts consume the most CPU time on a production server?

On a slightly under-powered server, it occasionally gets hit by lots of robots crawling simultaneously. Whilst one solution is to look into throwing more processing power at the web server, it has ...
7
votes
4answers
247 views

Is there an SVN UI for hosting server?

We are considering upgrading to either a dedicated or cloud server. What I would really like is for the hosting account to have SVN installed on it. With a UI that I can use. So when I make a change, ...
2
votes
2answers
452 views

Removing the script extension with URL rewriting on Apache

Given a (slightly theoretical) physical disk layout of: \products\cameras\50d.jpg \products\cameras\20d.jpg \products\lenses\18-55.jpg \products\lenses\28-135.jpg \products.php At the moment, I've ...
7
votes
1answer
726 views

Permissions for serving up temporary files

I have a system (web based application) which pulls file attachments from a 3rd party system via SOAP. These are in turn on our system created as files in a directory. When a user of the system ...
1
vote
2answers
448 views

Apache Per User Directory Not Found

For some reason the user directory I have for my server has stopped working whenever I go to server/~user/public_html/ I get a 404 error. The files are there on the ftp, but they're not showing up ...
7
votes
1answer
377 views

Problem with .htaccess and mod_rewrite after moving site to new server

The site seems to draw the correct links but its not redirecting me to the correct view. The same code works fine on the old server here http://ruse.systemio.net/q&a/. The new server is here ...
3
votes
2answers
1k views

Track down segmentation faults in PHP? [closed]

I'm looking for a relatively painless way to track down segmentation faults in PHP (as reported in the Apache error log). This is my LAMP setup at the moment: Linux: OpenSUSE 11.3 x86_64 Apache: ...
7
votes
1answer
11k views

How can I redirect port 80 to a different port with Apache?

I have tomcat running on port 8080 and want a particular URL, lets say http://example.com/app, to actually point to example.com:8080/app I have other content on the website that should remain ...
1
vote
2answers
317 views

How can I allow robots access to my sitemap, but prevent casual users from accessing it?

I am storing my sitemaps in my web folder. I want web crawlers (Googlebot etc) to be able to access the file, but I don't necessarily want all and sundry to have access to it. For example, this site ...
9
votes
2answers
26k views

Can I skip the PEM pass phrase question when I restart the webserver?

After buying a multi-domain SSL certificate I have started testing it with the Nginx webserver (following documentation in their SSL wiki page). Everything is fine, it works and I get a green ...
10
votes
4answers
276 views

Cheap server stress testing

The IT department of the nonprofit organization I work for recently got a new virtual server running CentOS (with Apache and PHP 5), which is supposed to host our website. During the process of ...
7
votes
1answer
273 views

Apache rewrite rules for development workstation and server

I've got developers editing pages for several sites on a WAMP stack and then uploading to the public servers running LAMP stacks. We're pretty happy with it, but we have this minor annoyance: we can't ...
8
votes
4answers
210 views

Can missing anchors be logged?

If I have a broken link it gets logged with a 404. If I have a link to an anchor and the anchor is missing, I don't get an entry in the log. How can I find those broken anchor links, especially if the ...
10
votes
3answers
153 views

How do I ensure that my content is sent via gzip in Apache?

Is there some setting that I can search for in Apache configurations to make sure that all pages, CSS, and JavaScript are sent via gzip? Are they located in different places for different Operating ...
14
votes
3answers
1k views

What are some great resources for mastering Apache administration?

I've been working with Apache for a couple years now and am comfortable with basic administration and configuration. However, I'd really like to increase my skill set from basic administration to ...
13
votes
5answers
529 views

Is it worth looking into a webserver other than apache?

I've traditionally deployed my sites under apache, simply by default. I've heard things about NGinX though and I'm wondering under which conditions it would be superior. In addition to apache and ...
4
votes
1answer
342 views

Apache KeepAlive - why should I ever need it?

I've read several blogs about turning KeepAlive off in apache. When I had it turned on, and a spike in traffic, people started timing out, or had to wait +10 seconds for a page load. However, when I ...
5
votes
5answers
15k 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 ...