Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.

learn more… | top users | synonyms

0
votes
1answer
156 views

How to ensure apache2 reads htaccess for custom expiry?

I have a site with Apache 2.2.22 . I have enabled the mod-expires and mod-headers modules seemingly correctly: $ apachectl -t -D DUMP_MODULES … expires_module (shared) headers_module (shared) … ...
0
votes
4answers
215 views

Need to redirect to another server with no access to DNS A record

I've a website which is on two servers - the one it's on now malfunctioned. I have the site hosted on a second server, but have no access to the DNS Records to point the A Record to the new server IP. ...
3
votes
1answer
211 views

Mod rewrite - redirecting url with certain parameter to new url

I need some help redirecting a url with particular parameter value to a new url. For example how can i redirect these two urls with id 123 and 345 to a new url? Redirect ...
1
vote
1answer
201 views

Is it possible to use two different ErrorDocuments for different paths of a website?

I currently run PmWiki at mydomain.com/pmwiki. I have a 404 page and .htaccess set up in my site's document root for 404 pages regarding anything that doesn't have to do with my wiki. By default, ...
4
votes
1answer
101 views

Unable to view 2 local sites over network

I have 2 websites running on my local machine that I'd like to view from other machines on the same network. For /etc/apache2/sites-available/site1.com: <VirtualHost *:80> ServerName ...
2
votes
0answers
469 views

Problem with missing JSON functions on PHP 5.2.6 / Plesk 8.4

I have a vserver running openSuse 10.3, Apache 2 and Plesk 8.4. I can update/upgrade neither, as it is apparently not recommended to upgrade openSuse 10.3 (and an update to the EOL 10.4 does not seem ...
1
vote
0answers
395 views

404 error on a file/directory that exists?

We are using the vBulletin system. I have set it up so that it redirects 404 error's to a php page, so it follows the theme of the forum. However, if I go to a directory that exists (the admin ...
0
votes
0answers
67 views

Logging what was in the content of a page

I'm one of the people working on a Java based website that has the apache httpd in front of it. The content on the pages is migrating towards personalizing the content and as such just about every ...
0
votes
1answer
580 views

Do I need a subdomain or CNAME?

I have a domain with Godaddy (mysite.com) which is pointing to my AWS EC2 box. Now I need a launchpad link on my website so that if the user clicks on it it would point to launch.mysite.com This ...
4
votes
2answers
435 views

Let apache run perlscripts that don't have an extension

I'd like to use perlscripts without their extension. f.e. "index" instead of "index.pl". Changing the DefaultType-directive from text/plain to application/x-perl didn't do the trick. Instead of ...
1
vote
0answers
564 views

File access forbidden in htpasswd [closed]

I have been using the htpasswd generated in this question and it seemed to have been working well until recently. Since yesterday, I am not able to access the newest file created in the folder ...
1
vote
2answers
460 views

Why do I get this error about file not being found?

I am getting this error: File does not exist: /var/www/user/home/user/public_html/cgi-sys I have only .html files in the document root. Can anyone tell why I am getting this error?
2
votes
2answers
649 views

Is there a modern (eg NoSQL) web analytics solution based on log files?

I have been using Awstats for many years to process my log files. But I am missing many possibilities (like cross-domain reports) and I hate being stuck with extra fields I created years ago. ...
2
votes
2answers
283 views

How can I test for a URLs existeance before redirecting to it?

I am using Apache's mod_rewrite to redirect mobile users to my mobile site based on their http_user_agent. However not all pages have a mobile equivalent. Also mobile pages end in .html and "full" ...
0
votes
2answers
1k views

apache virtual host problem on windows 7 - please explain

This problem has never occurred in the past (i have tried this many times) but this time, ALL virtual hosts defined in the virtual-hosts.conf file in the apache installation directory direct the ...
0
votes
1answer
921 views

How to use different php.ini files for different VirtualHosts?

I have my site and it's staging subdomain running on the same CentOS machine running apache. The subdomain is created using a VirtualHost, and I use it to find any bugs before I push to production. I ...
2
votes
1answer
134 views

Webserver timing out

I was working with my website yesterday when I was at home using my web address. Yesterday I installed Wordpress and it seemed to work. When I got to work today, I tried opening my website, and now ...
1
vote
1answer
9k views

Managing multiple reverse proxies for one virtual host in apache2

I have many reverse proxies defined for my js-host VirtualHost, like so: /etc/apache2/sites-available/js-host <VirtualHost *:80> ServerName js-host.example.com [...] ProxyPreserveHost On ...
3
votes
2answers
18k views

Apr_sockaddr_info_get() Failed

Today while trying to start apache server I received an error: Apr_sockaddr_info_get() Failed I would like to get opinions / answers to resolve this issue. I would like to know what exactly is ...
1
vote
1answer
91 views

Custom 505 and SEO

There is a PHP project that sometimes throws 500 errors, I'm making a customized 500 page so that people realize we are monitoring this event and we will fix the issues. My question is related to SEO ...
2
votes
1answer
838 views

How to properly deny Railo directory access through Apache

I've been battle tested on this and failed to achieve my goal which is to deny all access to all directories except the Public directory and only allow access to all all other directories with ...
0
votes
1answer
89 views

Is it possible to request Google and Bing/Yahoo to drop the cache of links they have indexed?

I radically changed the design of my site to not include embedded session keys which were part of the url itself i.e. /sessionkey/blahblah/blah to just /blahblah/blah. Now that I have relaunched my ...
3
votes
2answers
321 views

Bizarre image loading problem from apache2

Users have complained a few times about seeing a bizarre set of pink or green stripes on our webpage. At first I thought there were a rash of video card outages, but then someone sent me a screenshot ...
2
votes
1answer
600 views

htaccess preventing sqlite database being downloaded

I have a VPS, running apache2 on Debian 6. Created a file called .htaccess on the web root, which included: <Files ~ "\.db$"> Order allow,deny Deny from all </Files> ...
0
votes
2answers
404 views

htaccess and htpasswd trouble

This is the first time that I have ever tried working with .htpasswd and .htaccess files, so please point out my childish works. I have my apache document root set to /www/ on my debian server. ...
3
votes
2answers
785 views

How to force browsers to always reload xslt files?

Related: Apache: How can I force the browser to reload CSS files? I'm building an xml page (on an apache2) that is supposed to be translated to xhtml by the browser, so my server also serves a ...
2
votes
1answer
3k views

last-modified/etags - to include or not?

Google's PageSpeed plugin suggests that a website should include Last-Modified and ETag headers: Specify a cache validator "Resources that do not specify a cache validator cannot be refreshed ...
2
votes
3answers
3k views

How to restrict site access to all countries except mine with .htaccess?

I used this tool to download list in ".htaccess allow" format to allow traffic from my country and restrict all others but it's still accessible when visiting from bunch of foreign proxies. I'm ...
1
vote
2answers
374 views

Run server-side script as authenticated user in apache--is it possible?

I'm developing a web app that takes a bunch of parameters (dropdown boxes, etc) from an authenticated user, creates a file, then delivers that file via stdin to a program on my web server. Due to ...
4
votes
4answers
2k views

Huge difference between Facebook Ad Click figures and Apache log requests

We're running a facebook ad campaign for our business but there seems to be a huge discrepancy between the number of clicks registered and the number of requests made with "facebook.com" in the HTTP ...
1
vote
1answer
92 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 = ...
1
vote
3answers
1k 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 ...
4
votes
2answers
2k views

Should 304 Not Modified responses include the “Last Modified” header?

I've been using the most excellent http://redbot.org tool for testing have HTTP headers on my site correct (its custom code in PHP serving dynamic content - wanting to ensure it cached where possible ...
4
votes
3answers
1k views

How do I block US users from my website without interfering with SEO?

My website uses Apache 2.2.14 (which forwards all requests to Tomcat underneath). I need to block all US users from accessing the website (and potentially users from other countries). But importantly ...
1
vote
1answer
245 views

Connecting oci8 to Apache & PHP

We're building a Debian server to host a website which is built on PHP. It connects to an Oracle database. I need to connect the PHP to the Oracle database using oci8. However, some of the steps I've ...
2
votes
1answer
146 views

Hosting my own website on apache2, what information do I need from my domain registrar (bluehost)

I have lamp-server installed and am ready (and excited) to host a domain I purchased from bluehost on the server in my room. I have a few other things set up like openssh. What information do I need ...
2
votes
3answers
20k views

Configure apache to make local website available for external people

I would like to make my local website (running on a virtual CentOs machine) accessible for my mate who is also working on the website. I have created a new line in my router config to forward all ...
0
votes
2answers
113 views

How do I select a different start/default page per domain?

I have an apache2 installation on www.main_domain.com (invalid underscore in domain name is intentional; this is an example), and the default page gives links for two secondary sites, also served by ...
1
vote
2answers
122 views

Beginner's Apache mod_rewrite - use custom file for website root

Plain and simple - I want user to get main.php file instead of index.php, when he enters website. Such a straightforward task has caused me a lot of pain, and couple of hours googling. Following does ...
2
votes
1answer
942 views

.htaccess file ignored on Ubuntu Apache 2 server

I'm having a problem with an .htaccess file on a newly installed Ubuntu server running Apache2. The .htaccess file in the directory where the WordPress files are located isn't being take into account ...
1
vote
2answers
311 views

Weird unexpected image compression on a web server running Apache on Ubuntu?

I have a weird problem on my production web server running Apache on Ubuntu: it compresses my images thereby dramatically lowering their quality! Actually I have two virtual hosts running, each ...
0
votes
1answer
228 views

How to block my images from being displayed by other websites? [duplicate]

Possible Duplicate: How is anti-hotlinking done? I have a lot of images on my site and I don`t want to let other people to use my images on their sites. Is there any way to block the use of ...
0
votes
1answer
997 views

Override .htaccess from parent directory

I have a local LAMP stack (without the MySQL. LAP stack? Anyways..) and I am using this as a development environment for a production website. The site is placed in a sub-directory of the Apache2 ...
0
votes
2answers
74 views

Flash site loads slowly

I have a simple html page that embeds an swf, that downloads other xml, swf and image files. The total count of the requests reaches about 90. I am aware that it should take a while until the content ...
1
vote
1answer
62 views

Apache2 and domain name

I have a server running several sites (sites-available/...) which all have a domain name, and are differentiated using their port number(www.xxx.com:8090, www.xxx.com:8091,etc..) I have a domain name ...
0
votes
1answer
557 views

apache2 running but doesnt load my index.html

I have a linux server running apache2, I have my own user folder: /home/me/... I added a .htaccess to my folder with: DirectoryIndex index.html in it and the server IP is: 123.456.789.111 I tried: ...
1
vote
1answer
540 views

Reverse proxying only a specific URL

I have a web server at www.ourcompany.com running Apache2. Using the proxy modules, I am able to (for example) get 172.16.0.5, an internal IP device, to be accessed on www.ourcompany.com/device. The ...
1
vote
1answer
61 views

Forcing adverts via apache configuration file

I have a server I am trying to force adverts for free users. I can do it with a .htaccess file with this line "php_value auto_append_file '/var/www/vhosts/demoblog/demoblog.tk/httpdocs/test_ad.php'" ...
1
vote
0answers
155 views

Video from internal network served to an externally visible web page [closed]

I am being asked if it's possible to take video from an internal IP camera and serve it to our external website like a live-feed camera. My initial thought is that it would have to be done through ...
1
vote
1answer
54 views

Redirect requests to another folder

I want to redirect all the requests that come to the folder 'test' to 'test1' using apache configurations. How do i do it?