Configuration file used by HTTP Server called Apache.

learn more… | top users | synonyms

0
votes
0answers
7 views

http to https redirection to a specific REST resource

I have a subdomain (ex1.example.com) in my apache server which I want users to be able to access only using https instead of http. I have successfully redirected from http://ex1.example.com to ...
2
votes
1answer
37 views

How to add the ‘www’ prefix to my domain

I am trying to add www to my domain. I have the custom PHPcode on live server. I have workout GoDaddy forward options also but still my domain not forward. I have a site designed in Core PHPand was ...
1
vote
1answer
34 views

Fastest Redirection on Apache Server with Wordpress for a Small ~200 Page Website

If I have a website of about 200 pages and most of the links will be inevitably changing, what is the faster way to redirect them (fastest not in terms of how quickly I can do it, but in terms of the ...
1
vote
1answer
119 views

How to block a wildcard subdomain in httpd.conf

So I am able to block specific subdomains like this: SetEnvIfNoCase Referer knownsub\.sorryspammer\.com sorryspammer <Location /> Order Allow,Deny Allow from all Deny from env=sorryspammer ...
2
votes
0answers
52 views

apache is not allowing me to use port number 443 in virtual tag for configuring apache for https service [closed]

I am trying to configure apache for https service in xampp , i am almost done i am jsut struggling with that virtual tag in which i have give information about my self-signed ssl-certificate and key ...
0
votes
2answers
40 views

Does every webserver have an httpd.conf file?

I have spent my whole day finding the location of the httpd.conf file for my website. I contacted my host and they told me they didn't give us permission to modify the httpd.conf file. Some ...
0
votes
2answers
42 views

Location of httpd.conf file

I have setup a home server on my PC and I can edit my httpd.conf file on it. When I move to my web server I can't see the location of my httpd.conf file. Is it in the www directory of the website? ...
1
vote
1answer
37 views

How to change cPanel URL? Example: mydomain.com/cpanel

I want to change my website's cPanel URL/path for security reasons. I have a VPS with shell root access, running centOS 6.5 64-bit. I want to change cPanel path for my website on the VPS to be ...
1
vote
1answer
52 views

What is the purpose of <Directory /> with a local <VirtualHost>

<VirtualHost *:80> DocumentRoot /var/www <Directory /> </Directory> </VirtualHost> Does the <Directory> tag refer to /var/www on the server, or /? What ...
0
votes
1answer
101 views

filter admin access by IP with httpd.conf

I am trying to filter all backend url to one IP in the httpd.conf file using this code: <Location /admin> Order deny,allow Deny from all Allow from 100.x.xxx.xxx </Location> ...
1
vote
1answer
3k 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 ...
1
vote
1answer
14k 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 ...
3
votes
1answer
63 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 ...
1
vote
2answers
2k 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
1k 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 ...
3
votes
1answer
3k 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
179 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
1k 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
56 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 ...
5
votes
3answers
10k 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
544 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
2k 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
4k 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 ...
3
votes
1answer
1k 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, ...
3
votes
1answer
186 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
7k 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 ...
5
votes
1answer
3k 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
465 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
1k 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
825 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 ...
5
votes
2answers
11k 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
797 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
201 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 ...
2
votes
2answers
9k 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
220 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
87 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
332 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
567 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?
4
votes
4answers
8k 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
1k 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
306 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
1k 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
258 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
184 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
59 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
182 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 ...
3
votes
2answers
8k 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 ...
4
votes
1answer
9k 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
1k 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
4k 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] ...