Questions tagged [apache-config]

Apache configuration is text based configuration file (or set of files) which are used to configure apache httpd web server

264 questions
0
votes
1 answer

Why does Apache find the website directory automatically?

The only I have among all Apache config files is: Options Indexes FollowSymLinks AllowOverride None Require all granted Actually the real directory on server is /var/www/html/.…
Basj
  • 41,386
  • 99
  • 383
  • 673
0
votes
1 answer

Will [a-z]* redirect work in the httpd.conf

Will this redirect work [a-z]* to example.com ie., I want to redirect anything to example.com Thanks Jean
X10nD
  • 21,638
  • 45
  • 111
  • 152
0
votes
0 answers

Why Apache can't answer 200 to OPTIONS request

I'm trying to send a "POST" request (using js) to my Apache 2.2 server. I do it like this: var req= new XMLHttpRequest(); req.open("GET", url + "?wsdl", async); req.send(null); var wsdl = req.responseXML; var ns =…
Nikitin Mikhail
  • 2,983
  • 9
  • 42
  • 67
0
votes
1 answer

CakePHP webroot not accessible on new Apache setup

I've just set up a new Ubuntu 10.4 slice on Slicehost, and have installed apache, mysql and php. I've uploaded my CakePHP app and everything is running fine, except for the webroot being inaccessible. I have tried adding AllowOverride to all in…
igniteflow
  • 8,404
  • 10
  • 38
  • 46
0
votes
1 answer

howto stop apache matching /favicon with /favicon.ico

I have site running with apache mod_rewrite and php In my public_html folder i have diss .htaccess file RewriteEngine On RewriteBase / RewriteRule ^([0-9a-z]+)$ index.php?reurl=$1 this works fine if there are no files in that directory with the…
plweb.se
  • 11
  • 4
0
votes
1 answer

Serving files with naming conflicts

I'm trying to duplicate something that's being done on a website that seems a bit weird. They are serving both h**p://site.com/script.php AND h**p://site.com/script.php/file1 This doesn't seem to make any sense to me. script.php is…
Sander Smith
  • 1,371
  • 4
  • 20
  • 30
0
votes
1 answer

prevent *.bak *.inc file upload from a apache server

Is it possible to prevent people from seeing files like .bak from am apache directory ? If there is a request for the url (http://foo.com/bar.bak), it'd be good to have a 404 error, and prevent anybody to upload the file.
Cedric
  • 5,135
  • 11
  • 42
  • 61
0
votes
1 answer

When you made alias in Apache Server you have to write Option: Indexes to Directiory?

When I don't give indexes option I all the time have forbidden message. When I give this option it works well, but I don't have starting page, but page with head: "index of" and below it there are links to files, which are in my directory. Now, how…
kspacja
  • 4,648
  • 11
  • 38
  • 41
0
votes
1 answer

Apache2 blocking access to specific directory in root of server

I'm working on setting up a website and at first I thought the website was broken but then I look and I'm getting 403d on everything under /javascript/ I've double checked the filesystem permissions. I can rename the javascript folder to js and…
0
votes
1 answer

Wordpress and SEO: how to mask a path/pull content from another domain

I have a marketing site (running WP) at http://www.example.com, and our application (our own software) at https://secure.example.com. We let people subscribe at https://secure.example.com/subscribes?some=tokens-here We have thousands of backlinks…
jemminger
  • 5,133
  • 4
  • 26
  • 47
0
votes
1 answer

Apache2 : How to configure different/multiple websites in Dedicated IP

I have 5 websites which is to be hosted on a single dedicated server. ### Many documents(apache2) provide help to achieve this site1.com > should access /var/www/html/site1 site2.com > should access /var/www/html/site2 But what I want is the…
SuperNova
  • 25,512
  • 7
  • 93
  • 64
0
votes
0 answers

What exactly does the AcceptPathInfo directive do?

The core documentation for v. 2.4 of Apache tells me that the AcceptPathInfo directive "controls whether requests that contain trailing pathname information that follows an actual filename (or non-existent file in an existing directory) will be…
user3311045
  • 689
  • 1
  • 7
  • 15
0
votes
2 answers

Django using mod_wsgi for Sub Urls

Similar questions have been asked before on this site, but I had a doubt as to how my site anchor tags will be replaced when I try to host my website under a suburl. E.g. My domain is www.example.com and my suburl which maps to the Django…
niting
  • 2,384
  • 3
  • 19
  • 20
0
votes
1 answer

Will this config error stop apache from restarting

I have a production website running apache on linux. There are all sorts of rules set up which I don't want to mess with. I need to restart apache so I decided to do a configtest first to check that everything was ok. My question is, will apache…
jeph perro
  • 6,242
  • 26
  • 90
  • 124
0
votes
1 answer

Apache Server File Permission

I am using Apache Server 6.0 and I am trying to update a file using ajax put request but the server is giving me error 405 Method Not Allowed. I am working this out on windows. Can anybody help me out if that. Thanks in Advance. Vinay
Vinay
  • 183
  • 1
  • 3
  • 9