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.
4
votes
5answers
9k 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 ...
4
votes
1answer
287 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:
...
2
votes
2answers
65 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 ...
0
votes
1answer
836 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
1answer
117 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 ...
4
votes
1answer
94 views
Apache Virtual Host different depending on client ip?
What I'm trying to accomplish is:
1. A person, with IP 192.168.1.5 loads my webserver (192.168.1.2) and reaches htdocs/
2. Another person, with ip 192.168.1.6 does the same request, and reaches ...
6
votes
3answers
150 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.
3
votes
0answers
360 views
Password protect an alias virtual directory
I have a main domain being hosted through CPanel. I also have a sub-domain that I would like to appear as a path under the main domain instead of as a sub-domain. So I have:
http://example.com/ ...
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 ...
6
votes
2answers
1k 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
642 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
66 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
242 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
35 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
2k 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
764 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 ...
0
votes
0answers
51 views
How to improve overall site performance/security? [closed]
I use PHP and am avid in my development using that language. What means can I use that will improve the performance of my PHP site, and bolster its security?
2
votes
1answer
249 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
81 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
81 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"
...
1
vote
2answers
2k views
Mod Rewrite - directing HTTP/HTTPS traffic to the appropriate virtual hosts
I have an Apache2 web server (v. 2.2.16) running on Debian hosting three virtual hosts. The first two hosts are HTTP only (server1 and server2). The last host is HTTPS only (server3). My virtual host ...
6
votes
3answers
1k views
Force SSL and WWW in .htaccess
I'm looking for a way to force SSL and WWW.
I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: ...
2
votes
2answers
2k views
Apache logs: “::1 … ”OPTIONS * HTTP/1.0" 200 -
Just looking at logs of a not-so-busy site on one of our Apache servers and notice tons of these in the log:
::1 - - [15/Apr/2011:12:11:40 -0700] "OPTIONS * HTTP/1.0" 200 -
::1 - - ...
1
vote
2answers
412 views
Redirect to subdomain port 8080
I have my domain registered and running. I have installed lifray which is running on tomcat 7, my site url is iloveliferay.com:8080 and I want this to be at themes.iloveliferay.com, which file I need ...
0
votes
0answers
82 views
Connection Reset / Interrupted error occurring for http connections over DDNS to access NAS personal web site [closed]
I have a local NAS hosting a personal website that I'd like to work with both http and https protocols.
So far https works correctly, but http keeps returning "Connection Reset" in Firefox and "This ...
0
votes
1answer
103 views
Changing domain name - what are the practical steps involved [duplicate]
Possible Duplicate:
How do I rename a domain and preserve PageRank?
I launched a website a couple of years ago, bright eyed and bushy tailed, with dreams of conquering the world. ...
3
votes
4answers
223 views
4
votes
1answer
3k views
How to install mod_ssl for Apache
I have installed Apache httpd a while ago and have recently come back to it to try setup SSL and get it serving several different tomcat servers.
At the moment I have two completely separate tomcat ...
3
votes
1answer
322 views
subdomains apache rewrite rules
Let's say I have my web folder as public_html. In there I have a sub folder. I can view the folder at:
www.mydomain.com/sub & mydomain.com/sub
What I want is:
sub.mydomain.com
This will show ...
2
votes
2answers
135 views
Apache2: Deny access for mail.mydomain.com but allow www.mydomain.com, both points same ip
i have a linux mail+http server located throguh Internet at www.mydomain.com. Domain was bought at GoDaddy so after configuring the server and getting the public ip address i went at GoDaddy's profile ...
1
vote
1answer
41 views
www.mydomain.com secure but not mydomain.com? [duplicate]
Possible Duplicate:
www.mydomain.com secure but not mydomain.com?
Hi
We've got our website running and https / ssl works just great.
EXCEPT
when users enter http://www.mydomain.com and ...
1
vote
2answers
86 views
SSL Certification on both www and no-www domains
We've got our website running and HTTPS / SSL works just great.
EXCEPT: when users enter http://www.mydomain.com and then enter the secure area and get directed to https://www.mydomain.com it works ...
1
vote
1answer
36 views
How can I bypass modules in apache?
I have an apache server running on an embedded device that serves webpages to clients using a bunch of custom modules.
I'm now trying to load some webpages from the device using ...
0
votes
3answers
132 views
Subdomain Is Redirected and Causing an Error Because www. is Added
On my site, say example.com, if I try to access test.example.com, Firefox automatically adds www. to test.example.com, making it www.test.example.com, which causes an error. However, if I visit a site ...
2
votes
1answer
115 views
Apache mod_rewrite problem
I try to use Apache mod_rewrite to redirect some pages on my customer's website to the homepage. The .htaccess file is the following:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
...
2
votes
1answer
364 views
301 Redirect from www to non-www without using VHOST
I have my web application running on EC2 with Apache. I want to redirect www to non-www. On searching Google, I used this but it leads to redirect loop:
<VirtualHost *:80>
ServerName ...
1
vote
1answer
43 views
Tricky mod_rewrite challenge
I list about 9,000 records on my little site. At the moment I'm showing them with a dynamic page, like
http://domain.com/records.php?id=019031
But I'd like to start using meaningful URLs like this ...
1
vote
0answers
99 views
htaccess returning 404 errors on some URLS on website
I have a .htaccess file on my main directory on my website, which basically allows pretty urls (example.com/index instead of example.com/index.html) and it will redirect to a pretty url if someone ...
6
votes
1answer
7k 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 ...
2
votes
3answers
182 views
How to remove /index.html
How to make redirect /index.html -> / in Apache?
Redirect /index.html http://domain-name.com/
Is causeing infinite loop when opening home page.
0
votes
2answers
357 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} ...
3
votes
2answers
177 views
How do sites avoid SEO issues and legalities with subdomain unique ids?
I was looking through a few websites recently and noticed a trend I'm not sure I understand. Sites are creating unique referral URLs for customers in the form of: http://customname.site.com
(If ...
2
votes
0answers
48 views
How many connection can my website have? [closed]
As the traffic increased my website hangs quite regularly. The page visit is now averaging 50k per day.
The static page loads fine, but when the page has mysql request it takes too much time to ...
0
votes
1answer
227 views
Rewrite in Mediawiki, remove index.php, htaccess
I've just installed Mediawiki on Apache and I want the url should be
localhost/Main_Page/
localhost/Special:Recent_Changes
...
instead of
localhost/index.php/Main_Page/
...
-2
votes
2answers
120 views
My forum HTTP redirect won't work .htaccess? [closed]
Yeah, I already have this code "DirectoryIndex Forum-The-Lounge.html index.php" at the top of my .htaccess
And I want my site to redirect into a sub-forum like http://mebes.net? My site is ...
-1
votes
2answers
2k views
Having trouble redirecting old product sites and categories to new pages
I recently upgraded a shopsystem to prestashop and imported the previous products (~1200), and I managed to keep the old category_id and product_id. I'm trying to set up those 2 rules to redirect all ...
7
votes
1answer
246 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 ...
2
votes
2answers
140 views
Is it possible to count the number of hits or loads of a webpage without anything fancy?
I know very little, but I do know that I have some server space given by my University with a file called public_html which anyone can load html and other files from. So is there a simple way to add ...
3
votes
3answers
352 views
using .htaccess to redirect .asp to .php?
Ahoy all! I've been racking my brain with this one.
I basically just converted all of my pages from ASP code to PHP code. Kept the same filenames.
So, here is the htaccess code I have so far, but ...
1
vote
0answers
382 views
Magento - Unable to access remote site but able to access a simple index.html file
I'm building a store (magento 1.6.0.0-rc2) and have a home server to host the site.
It is behind a modem/router with redirection of port 80 and 3000 active to server box.
1. I can access the ...


