Tagged Questions
1
vote
1answer
40 views
Set the “servername” directive globally to suppress this message
I am setting up PHP for the first time and I am getting this error from the Apache server:
Set the "servername" directive globally to suppress this message.
This is the content of my httpd.conf ...
0
votes
2answers
110 views
How can I block a user agent from all sites on my server? [closed]
For the last few days, I've been suffering from what appears to be a (presumably inadvertent) DDOS attack. I've been getting so many requests from an agent identifying as "Mozilla/4.0 (compatible; ...
2
votes
1answer
102 views
How can I force a VirtualHost in Apache to not listen for undefined subdomains on 443?
In /etc/apache2/sites-available/example.com:
<VirtualHost *:443>
ServerName www.example.com
DocumentRoot /var/www/example.com/htdocs
SSLEngine on
...
1
vote
2answers
133 views
Have UserDir enabled but also want to rewrite url if called differently
I am setting up a new server for our users to use have have personal webspace on. I have in my httpd.conf of apache the directives for UserDir as follows
UserDir disabled root
UserDir public_html
...
2
votes
1answer
24 views
How should I set the default virtualhost?
I want to run 2 websites.
One for www.example.com, and the other for everything else (www.example2.com, www.example3.com)
How I do it?
I tried:
<virtualhost *:80>
ServerName www.example.com
...
1
vote
2answers
100 views
How to Change the www root directory on WampServer
How can i change the root directory of the currently installed wampserver to some other directory.
2
votes
0answers
240 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
2answers
435 views
Apache HTTP Server Configuration on Port Other Than :80
I am running an apache server for development on windows 7 (via XAMPP).
By default, it is set up to listen on port :80 for http:// requests.
I can configure it for, say, port :1234, and can access ...
2
votes
1answer
339 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 ...
2
votes
1answer
88 views
Stop Apache serving filetypes
Preferably using .htaccess files, though .conf files are an option, is there any way to stop Apache serving certain filetypes?
For example, .db shouldn't be served for obvious reason (privacy and ...
0
votes
1answer
498 views
What response headers encourage 304-Not Modified upon reloads?
When looking at the network waterfall in Firebug/Chrome/IE9, I keep seeing "200-OK" instead of "304-Not Modified" for many cache-able files (images, js, css) on this page, for example.
I believe it ...
0
votes
1answer
423 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 ...
3
votes
2answers
4k views
Redirect Permanent and https
I just set up HTTPS on my server, and I have an issue with redirect permanent.
Example http://domain.com/index.html it redirect me to http://www.domain.comindex.html
The / (tail ending slash) is ...
1
vote
1answer
172 views
www.foobar.com works but foobar.com results in a 'Server not found' error
I have just setup a minimal (hopefully secure? - comments welcome) apache website using the following configuration file:
<VirtualHost *:80>
ServerName foobar.com
ServerAlias ...
1
vote
2answers
4k views
wamp installed can't find localhost
I installed a WAMP package on a Windows 7 machine and everything ( Apache, php, mySql, phpMyAdmin) appear to have installed correctly.
However when I try to access localhost or phpMyAdmin via the ...
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
4answers
3k views
How do I hide the port in my URL?
What am I missing? If I go to mysite.com:9999 I get my site, but not mysite.com Obviously the users shouldn't need to type in the port, so what do I need to do? I'm not really trying to hide the ...
3
votes
2answers
817 views
Apache2 virtual host localhost doesn't render CSS when offline because of absolute path
I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
7
votes
1answer
228 views
403 error on index file
When I try to access index.py in my server root through http://domain/, I get a 403 Forbidden error, but when I can access it through http://domain/index.py. In my server logs it says "Options ExecCGI ...
0
votes
1answer
640 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
203 views
Apache <Directory> blocks
I'm trying to make it so that the outside world can't access a specific section of my website. What I did was:
<Directory /Library/WebServer/.../secrets/>
Order deny,allow
Deny from ...
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 ...
2
votes
2answers
3k views
Apache http.conf allow intranet
what would be the correct config to allow only authenticated users and the intranet (without need for a password) in apache?
This does not request a password and without the "satisfy any" intranet ...
2
votes
1answer
4k views
Configure Apache HTTP 2.2 for PUT method
I've written code for file upload and download using HttpWebRequest/HttpWebResponse class in C# with Apache 2.2 as a web server. In code I'm using request.method = "PUT".
I want to config my http ...
1
vote
1answer
567 views
Purposes and priorities of Apache conf files
I've installed an Apache2 server on a Linux Box (Ubuntu 10.04 TLS) and am trying to setup some virtual host and proxies. There is some stuff in the apache2.conf, an empty httpd.conf (which was used ...
1
vote
1answer
2k views
What is wrong with this Apache httpd.conf file for vhosts?
What is wrong here?
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.apples.co.uk
DocumentRoot /var/www/apples.co.uk
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.apples\.co\.uk$ [NC]
...
2
votes
1answer
588 views
Enable mod_rewrite on OpenSuSE 11.04
I have a problem on OpenSuSE 11.04. I configured apache and enabled mod_rewrite but it doesn't working. on every php file I get 403 forbidden error.
0
votes
1answer
328 views
Configuring `mod_vhost_alias` to server subdomain-based websites
I am currently in the process of setting up an Apache server that will be hosting projects built from SVN using a continuous integration server. The problem is, however, that while I've managed to ...
0
votes
2answers
766 views
How to configure virtual host to consider domain path in Apache [closed]
the following virtual host definition is working for an arbitrary url starting with "http://1.2.3.4:80/*"
<VirtualHost *:80>
ServerName www.domain.com
DocumentRoot ...
0
votes
1answer
467 views
How to hide awstats url parameters
currently in order to access statistics on my site I access this link:
www.mysite.org/awstats/awstats.pl?config=awstatsconffile.org
all is working fine, but what I want to achieve is simply this:
...


