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.
3
votes
3answers
275 views
.htaccess URL rewrite
I used to have a rewrite rule to
RewriteRule ^([^/]+)\.htm$ index.php?c=$1 [NC]
RewriteRule ^([^/]+)\.htm/([0-9.]+)$ index.php?c=$1&amt=$2 [NC]
Now, I have to change to
RewriteRule ...
2
votes
2answers
112 views
clean urls issue using .htaccess in php project
I am working on a php laravel project. I am currently facing issues with .htaccess file. I have following .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
...
1
vote
2answers
264 views
“File does not exist” in apache error log when mod_rewrite is using
I am getting below error in server log, when re-writing the urls.
[Fri Jan 25 11:32:57 2013] [error] [client ***IP***] File does not exist: ...
1
vote
2answers
593 views
Need some help on tomcat URL mod_rewrite or mod_jk
I am trying to remove the context name from the URL of my server.
Current URL - http://www.domainname.com/MyApp/
What I need to make is to make it available at - www.domainname.com/
So it is only ...
3
votes
1answer
189 views
Apache utf-8 characters in filename
I can't figure it why I can't open files (photos as a start) that contain utf-8 characters in their file name.
For example, I have the following photo: José-Antonio.jpg , the browser outputs it as ...
3
votes
1answer
109 views
How to get rid of crawling errors due to the URL Encoded Slashes (%2F) problem in Apache
The Google web crawler has indexed a whole set of URLs with encoded slashes (%2F) for our site. I assume it has picked up the pages from our XML sitemap file. The problem is that the live pages will ...
2
votes
1answer
18 views
Where does Apache get the 'last modifed' date for its automatic indexes?
I have a Solaris server running Apache, and I am using the following .htaccess to generate automatic indexes.
Options +Indexes
# SET INDEX OPTIONS
IndexOptions +NameWidth=*
Where does the "Last ...
2
votes
1answer
73 views
Is there a way to know if apache receives a request from a public IP not local to your country?
I'm looking for ways to know if an apache server receives a request , from another country (e.g germany) considering its a fair request (no spam , or proxies). I want it either to appear this as a ...
2
votes
1answer
107 views
how to fix .htaccess - redirect http://408.111.1111.domain.us/ to http://domain.us/index.php?w=408.111.1111
We want to use mod_rewrite and .htaccess to do a redirect. How do we redirect http://408.111.1111.domain.us/ and www.408.111.1111.domain.us/ to http://domain.us/index.php?w=408.111.1111 ? If the ...
2
votes
1answer
535 views
sub folder non-www redirect
Is there a way to redirect a sub folder to non-www?
What i use is:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
BUT this only ...
2
votes
1answer
216 views
Issues with timed out downloads via TomCat?
We get, in our opinion, a lot of failed download attempts and want to understand why.
We offer downloads via an email link (typical):
http://www.semanticdesigns.com/deliverEval/<productname>
...
1
vote
1answer
38 views
Setup basic proxypass in apache
I have a web application that communicates to a web service deployed on the same server. The web app was written with Tibco General Interface and works well only when it is running locally on the ...
1
vote
1answer
47 views
Login Prompts in mod_auth_sspi showing up for aliased sites only
I've been trying to figure this out off and on for a few days now, and I think I just have a fundamental lack of understanding :)
I have Apache2 running in a windows environment serving up our ...
1
vote
1answer
48 views
Apache Server - Wrong Certificate
At work we are moving a website from "outside" to "inside". Standard LAMP website (Apache, MySQL, PHP).
The issue I'm having is that it's serving up the wrong certificate.
https:/intranet - on my ...
1
vote
1answer
64 views
Apache log naming conventions
I run 30+ sites out of my dedicated server (running CentOS). Some of these are subdomains. I currently use this pattern as a log file naming convention, in /etc/httpd/logs:
site_com-error_log
...
1
vote
1answer
185 views
Using mod_speling with multi-level htaccess and rewriterules
We recently switched formats for managing our 301s. For the most part, everything went well, but it seems to have stopped mod_speling from working properly. Here's what we changed:
old ...
1
vote
1answer
55 views
How can I rewrite a subdomain to go to a specific file in a specific folder?
I've done searching for my answer and have tested a few solutions, but nothing has worked so far.
I'm trying to get a URL like this http://baseball.sports.com to rewrite to ...
0
votes
1answer
26 views
Can I redirect the http request towards an old folder to the homepage using .htaccess file?
I have to following situation: I had an old blog that was made using Joomla (this blog was indexed well enough by search engines). For some problems I delete it and I have create it again using ...
0
votes
1answer
319 views
Trying to Host Server for External Access - Apache, VirtualBox & Portforwarding
Banging my head on the wall at this stage.... trying to host my Apache site on Ubuntu 12.10 with VirtualBox. Running Windows 8 host.
Things I've done:
Ensured Apache is listening on ports 80, 443 ...
0
votes
1answer
77 views
codesniffer command not being recognized after several installs and upgrades
I've tried to install codesniffer using pear but my mac is not recognizing the phpcs command.
pear config
Configuration (channel pear.php.net):
=====================================
Auto-discover ...
0
votes
1answer
425 views
mod_rewrite problems - redirect subdomain to different domain
I must have a brain freeze as I can not get my rewrite rules working.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^otherdomain\.example\.com [NC]
RewriteRule ^(.*) http://www.otherdomain.com/ ...
0
votes
1answer
118 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
0answers
227 views
XAMPP - Unable to serve files larger than ~30MB
I'm developing a site locally with XAMPP on Windows 7, and as far as media is concerned, I'm unable to play media files that are larger than 30MB or so. Both video and audio files (MP4 and MP3 ...
3
votes
0answers
361 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/ ...
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 ...
2
votes
0answers
102 views
Why is AliasMatch not working?
Here is what we have:
Alias /assets/ "/home/virtual/public_assets/"
AliasMatch ^/~([a-zA-Z0-9]+)/assets/(.*)$ /home/virtual/public_assets/$2
<Directory "/home/virtual/public_assets">
...
2
votes
0answers
44 views
Replacement for DirectoryIndexRedirect for older versions of Apache
DirectoryIndexRedirect is available in version 2.3.14 and later. (mod_dir)
Is there an alternative method for older versions? I have different DirectoryIndex directive sets for a lot of directories ...
2
votes
0answers
207 views
Seeking htaccess help: Converting multiple subdomains (both http and https) to www.domain.com using .htaccess
I've been trying to get an answer to this question on other forums (the folks at SuperUser thought this was the place I needed to post) and via my connections, but I haven't gotten very far. Hopefully ...
1
vote
0answers
40 views
Best practices for serving multiple sites with Apache2
I have a server with a number of virtual hosts. Over the last couple of years I have continually been improving on most parts of serving these sites, everything from how and where to do logging, how ...
1
vote
0answers
101 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 ...
1
vote
0answers
79 views
Apache, Rewrite Rule and Directories
my sites-available/ file looks something like the following:
<VirtualHost *:80>
ServerAdmin webmaster@mysite
ServerName mysite.co.uk
ServerAlias www.mysite.co.uk
DocumentRoot ...
1
vote
0answers
74 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
104 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
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 ...
0
votes
0answers
17 views
Virtual host in Apache Zend
I'd like to ask you if you can tell me why I can't get Vhost in Apache to work my Vhostconf is:
NameVirtualHost *:80
<VirtualHost _default_:80>
ServerAdmin ...
0
votes
0answers
4 views
Plesk to Webmin - reconcile/unite vhosts setting from the former to the latter [CentOS 6.3]
So I decided to switch from Plesk to Webmin.
Normally in Plesk, when I add a new domain name, it would auto generate a document root under /var/www/vhosts/domain_name/
Now moving to Webmin, in a ...
0
votes
0answers
15 views
Move a website to subdomain while preserving (rewriting) URLs
I'm considering to move the (Confluence) wiki content of www.site.com to the subdomain wiki.site.com to make room for a well-designed landing page (Wordpress) which should take the wiki's place on ...
0
votes
0answers
17 views
mod_jk status page “Client Errors”
I have been examining the information displayed in the mod_jk status page for a server instance and there is a column for each worker titled "CE" which the key states is a count of "Client Errors". I ...
0
votes
0answers
94 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
0answers
163 views
How to get rid of this webpage that has a redirect loop?
I'm having an RnD in my local machine. My local dev is working fine with Apache until I decided to add Nginx. The error is the following one:
This webpage has a redirect loop
Error 310 ...
0
votes
0answers
34 views
URL rewrite with mod_rewrite
I have rewrite rule in parent directory which rewrites URL:
From example.com/index.php?id=test&cat=category
To example.com/index?test&cat=category
Here is my .htaccess file:
Options ...
0
votes
0answers
186 views
tomcat serving static content with directory listings
I have tomcat 7 configured to serve static contents from a directory:
<Host appBase="webapps" name="localhost">
...
<Context docBase="/var/projectA/static" path="/projectA/" />
...
0
votes
0answers
115 views
Subdomain redirect to WWW
I have the domain example.com and the test.example.com running on apache server. For some reason when I try to visit test.example it is redirected to www.test.example and by consequence a Server not ...
0
votes
0answers
436 views
htaccess rewrite rules converted to nginx not working?
I used this tool and converted my rules to Nginx. However one rule doesn't seem to be working.
My working .htaccess rules are:
RewriteRule ^(.*)\.html $1\.php
RewriteRule ^(.*)/settings\.html$ ...
0
votes
0answers
128 views
Downloading from Apache with Android handsets
I've an Apache server running on Windows, and seem to be unable to download any files from it to my Android phones.
From a very basic default directory listing from apache, saving a link always ...
0
votes
0answers
174 views
SoftException in Application.cpp:574 errors
I am seeing a lot of "SoftException in Application.cpp:574" errors in my log file.
Is this due to high server activity? I am on a shared server.

