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.
0
votes
1answer
19 views
Apache 2.4.2 on Windows reveals hidden files in web browser
Even though I have code to block access to hidden files in httpd.conf, the contents of a file such as .htaccess is visible in web browsers.
The same effect is present when running the server on ...
3
votes
3answers
282 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
1answer
22 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 ...
0
votes
4answers
119 views
Redirect everything from old domain to new domain
I need to (permanent) redirect all of the following:
www.domain.com
www.domain.com/folder
sub.domain.com
sub.domain.com/folder
Basically all URLS that are reachable without being intended to: ...
2
votes
3answers
43 views
Fastest way to redirect dead URLs to home page
A client of mine scrapped his entire wordpress site of many years for a custom CMS. The URL structures both use the /<post_title> format, so a pattern based .htaccess rule is out of the picture ...
2
votes
1answer
94 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 ...
0
votes
0answers
18 views
What is the best way to organise the /var/www directory? [closed]
I will soon be hosting around one hundred sites on a LAMP stack. I need to be able to keep my /var/www directory organised and scalable. What is the best way to organise this directory?
Here are some ...
2
votes
1answer
586 views
sub folder non-www redirect
Is there a way to redirect a sub folder to no-www?
What I use is:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
but this only ...
1
vote
2answers
604 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 ...
0
votes
1answer
60 views
Getting the masked URL values in Mediawiki
I have successfully masked the URL in Mediawiki. By using the following scripts in .htaccess and localsettings.php files in Mediawiki, i.e.:
.htaccess:
Options +FollowSymLinks
RewriteEngine on
...
2
votes
2answers
121 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 /
...
2
votes
1answer
117 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 ...
1
vote
1answer
54 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 ...
0
votes
1answer
34 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 ...
1
vote
1answer
66 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 ...
0
votes
2answers
264 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/
...
1
vote
4answers
65 views
Setting up a LAMP VM server for Development and Testing?
Info: I would like to set up a VM server on my local computer which will serve pages in the exact same way as my current hosting (but only to me on my local computer). I currently pay a big web ...
0
votes
1answer
28 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 ...
1
vote
1answer
59 views
Best practices for serving multiple sites with Apache2 [closed]
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 ...
2
votes
1answer
30 views
Apache - directory browsing gives 404
With no .htaccess files and Options FollowSymLinks MultiViews Indexes followed by AllowOverride None in the vhost configuration, I'm getting 404 responses from directory listings. Are there some ...
2
votes
1answer
221 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>
...
3
votes
1answer
228 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 ...
1
vote
2answers
294 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
1answer
69 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
...
0
votes
1answer
85 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 ...
3
votes
1answer
391 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
1answer
114 views
How can I point wildcard domains to a folder in Apache?
I am developing an app using PHP and deploying it on Apache on the Amazon AWS environment.
This app requires to be made available to customers from their own chosen domain name?
How can I acheive ...
-1
votes
0answers
15 views
How to make POST request URI in REstler 3 API? [closed]
I'm using this great and flexible API " Restler 3
I was trying examples of the library until I got stucked at example 5 Routing and CRUD also , I couldn't understand how to make POST request !
well ...
0
votes
1answer
42 views
REST webservice full implementation: server + client
I've spent a week reading about RESTful webservice and searching for a fully example to build my project above.
When I reach a fully understanding of the REST webservice, I couldn't find any full ...
1
vote
1answer
20 views
apache2 subdirectory access
I am setting up an apache server on my linux (debian) machine.
I am making a website, with sub directories that contains my css and image file.
Here is my config.
<Directory /var/www/*>
...
1
vote
1answer
26 views
Extensive GET /wpad.dat HTTP/1.1 requests
We are having extensive (thousands per minute) GET /wpad.dat HTTP/1.1 requests at our Linux server, causing traffic problems and slowing down access to the websites we host.
What does it stand for ...
0
votes
1answer
372 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 ...
5
votes
2answers
126 views
Separating static/uploaded content from the site
I have a site where I anticipate to have a large amount of users. I've heard that it is a good idea to separate user content (uploaded images) and place them on a separate static server where lighttpd ...
1
vote
1answer
200 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 ...
2
votes
1answer
26 views
Configuring an Apache server to run Python
I currently have a website set up on an Apache server running on Redhat Linux, and am trying to configure it to be able to run Python scripts. Essentially, I want to allow Python to be executable, so ...
1
vote
1answer
51 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 ...
0
votes
0answers
20 views
Redirect of www vs. “all works” [duplicate]
I was asked a question from a friend if he should redirect his-domain.com to www.his-domain.com.
I answered him that it seems more intuitive to just make both work. So if you enter by his-domain.com ...
3
votes
1answer
114 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 ...
1
vote
1answer
61 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 ...
2
votes
0answers
37 views
Managing Xampp on USB for Mac and Windows machines
I am working on some PHP projects (Wordpress mostly) with MySQL databases and primarily use my Windows Desktop to do the work on whilst running Xampp.
This all works great until I need to take my ...
1
vote
1answer
23 views
How to redirect IP to domain?
My IP xxx.xxx.xxx.xx is pointing to example.com at GoDaddy but I just noticed that when I type the IP in browser, it doesn't redirect to the website, how can do this? I am sure this will happen ...
5
votes
2answers
2k views
.htaccess directory to subdomain
I have been trying to make a subdomain from a directory (made by .htaccess) to be used as the main page starting like http://domain.com/sub/2/3/4.html and turning into ...
1
vote
1answer
359 views
http://www.example.com/http://www.example.com/ in Apache log?
I run a website, let's say www.example.com. On it I have a path and file, say www.example.com/path/file.html.
The Apache log lists GET requests like: GET /path/file.html HTTP/1.1
Which is correct, ...
2
votes
1answer
128 views
What are the most commonly used and basic Apache htaccess redirects?
This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
0
votes
1answer
431 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
2answers
25 views
How can you find using apache logs who logged in your server?
I have a application that running on apache web server, is there any way under apache logs i can identify name / ip address of user who logged into the system.
And also the date / time of who last ...
3
votes
1answer
126 views
An apache injection attack?
I encountered a novel (to me anyway) form of injection attack in one of my
logs
login as <!--#exec cmd="ls .."-->
Which looks like someone it trying to trigger sever side includes on
an ...
1
vote
1answer
117 views
Links don't work on new server
I've recently moved from server with php4 to php5. Now I cant open content in my page. Links look like this "page.com/news-it-is-rainy-day-1.html". But when I try to open link I just get the archive ...
0
votes
0answers
12 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
2answers
33 views
Issues with Apache and loading PHP files [ubuntu]
I just installed PHP and Apache2 on my laptop (ubuntu 12.04), but I can't get my PHP files to load. I have followed this tutorial: ...

