Configuration file used by HTTP Server called Apache.
1
vote
1answer
47 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 ...
2
votes
0answers
26 views
pointing a parked subdomain to a real subdomain
I have two registered domains. Say the domains are:
originaldomain.com , and parkeddomain.com
parkeddomain.com points to originaldomain.com
I also have a few subdomains in originaldomain.com, and I ...
0
votes
2answers
111 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; ...
0
votes
1answer
78 views
Apache server not able to read cookies from Browser
I have developed a login authentication page using cookies (with spring security) where for the first time, the user will need to get itself authenticated. Once the user gets successfully ...
2
votes
1answer
107 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
1answer
58 views
Apache - Reverse proxy
I am using Apache 2 and using the below virtual host definition in httpd.conf file
<VirtualHost *>
ServerName localhost
ProxyPass / http://localhost:8080/stackoverflow/
...
1
vote
2answers
136 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
104 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
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
2answers
441 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
355 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
127 views
Enabling SSL on Apache2 causes address already in use error
My server works just fine on a normal Apache2 install. Now, I'm trying to install subversion on this server using a guide I found on the net called: Installation of Subversion on Ubuntu, with Apache, ...
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 ...
-1
votes
1answer
3k views
XAMPP phpMyAdmin - Access forbidden!
I can't access PHPMyAdmin. I have installed XAMPPlite 1.6.5 on Windows 7. I haven't changed any config, except .htaccess, where I added the third line:
Order deny,allow
Deny from all
Allow from ...
4
votes
1answer
982 views
HTTP Header Cache Time: s-maxage and max-age
I am setting up a CDN for my website, I found the following sample for adding to the 'httpd.conf' file, this is used to adjust the cache-time for client and CDN:
ExpiresActive On
ExpiresByType ...
2
votes
2answers
194 views
Creating a Sub Domain on Dreamhost [closed]
I am trying to create a sub domain play.mink7.com
i went to Domains and Add Domain and added the Subdomain.
It created the DNS records.
Now when i go to the website http://play.mink7.com am getting ...
0
votes
1answer
500 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 ...
2
votes
1answer
574 views
How to properly deny Railo directory access through Apache
I've been battle tested on this and failed to achieve my goal which is to deny all access to all directories except the Public directory and only allow access to all all other directories with ...
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
2answers
144 views
Redirect *.example.com to example.com
I have some valid subdomains in my httpd.conf file. Now how do I redirect anything that's not a valid subdomain to the main website? What I mean is, if I have a valid subdomain hello.example.com, it ...
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 = ...
0
votes
1answer
235 views
connection partially encrypted, SSL for perl app
I am getting error on FireFox "connection partially encrypted" other browsers show that's not encrypted...
When I setup apache with ssl I use "/var/www/html/" for default directory, but all scripts ...
1
vote
2answers
316 views
What's the purpose of index.html
If I maintain www.example.com, does accessing it mean I would open index.html in its root directory?
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
820 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
641 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
205 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 ...
0
votes
1answer
154 views
htaccess performance issues vs restarting the server
I usually use the server config file for settings that I would like to apply to my applications (at least in the development environment), and constantly have to re-start the server.
I ...
1
vote
1answer
53 views
Forcing adverts via apache configuration file
I have a server I am trying to force adverts for free users. I can do it with a .htaccess file with this line "php_value auto_append_file '/var/www/vhosts/demoblog/demoblog.tk/httpdocs/test_ad.php'" ...
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
568 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]
...
1
vote
2answers
915 views
Apache FilesMatch regexp: Can it match by the cache buster 10 digit (rails generated) following the filename?
According to the apache FilesMatch docs:
The FilesMatch directive provides
for access control by filename
Basically, I only want to set an expires header for resources that have a 10 digit ...
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
330 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
769 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:
...


