1
vote
0answers
208 views

Centos Redirect to Fully Qualified Domain Name [closed]

I'd like to have my domain.com go to www.domain.com. I am on centos 6.3 with mysql, apache 2.2 , php 5.4 installed. I tried editing my httpd.conf file, my etc/hosts file and the htaccess file. I ...
0
votes
1answer
81 views

A subdomain not loading

On my newserver i set up a subdomain patientslife.linf.in. But when i try to set up another subdomain pmr.linf.in it shows the page The connection was reset in Mozilla and No data received in chrome. ...
1
vote
1answer
629 views

.htaccess ignored, SPECIFIC to EC2 - not the usual suspects

I run 8-10 EC2 based web servers, so my experience is many hours, but is limited to CentOS; specifically Amazon's distribution. I'm installing Apache using yum, so therefore getting Amazon's default ...
0
votes
1answer
129 views

Apache ignoring .htaccess rules and returning 404 not found

I just set up Apache and PHP on a server running CentOS by using something along the lines of yum install httpd and yum install php. I've created the following file in /etc/httpd/conf.d/vhosts.conf: ...
1
vote
2answers
100 views

Is it possible to redirect all subdomains except www to a specific directory?

I would like any directory *.example.com (bar.example.com, foo.example.com, etc..) to direct to the folder /home/user/htdocs/subdir/ www.example.com and example.com should remain unaffected. Is this ...
1
vote
1answer
323 views

Can you stop a SYN Flood attack with .htaccess?

[Linux - CentOS - Apache - VPS] Last week my servers came under a SYN Flood attack, my hosting provider took some steps and resolved the issue. One of the things that they did was turn on SYN ...
-2
votes
1answer
909 views

.htaccess not working on my phpMyAdmin folder

I have a phpMyAdmin folder. So first I set .htaccess folder and type this in it. AuthUserFile /var/www/html/phpMyAdmin-3.4/.htpasswd AuthName "phpMyAdmin Login Page" AuthType Basic Require valid-user ...
1
vote
1answer
2k views

server-status not working if allowoverride is set to all

in my apache config i have following settings <Directory "/opt/website/new-website-old/httpdocs"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from ...
0
votes
2answers
258 views

CentOS 5.6: Apache access permission after .htaccess upload

I was working on my home server remotely and wanted to make some changes to my .htaccess. I could not see this file using my FTP(filezilla) and thought there was none there. I decided to upload one I ...
0
votes
1answer
897 views

How to limit bandwidth in CentOS using htaccess and not httpd.conf?

I'm trying to limit bandwidth in centOS. I have tried using bw_module, cband_module and bandwidth_module, but all of those required to use the httpd.conf and must restart httpd! I have to do this ...
0
votes
1answer
72 views

Why servers error log states lots of file doesn't exist, but files are accessible and website works well [duplicate]

Possible Duplicate: Why servers error log states lots of file doesn't exist, but files are accessible and website works well we migrated our website onto VPS server (CentOS 5.6 + Plesk ...
0
votes
1answer
73 views

Edit htaccess file in apache

I would like to deny all ip addresses but allow one specific ip address in .htaccess. Can someone tell me how I should configure my .htaccess or is it a different file? I have CentOS 5 and Apache.
1
vote
1answer
257 views

.htaccess file isn't applying itself and doesn't work unless I edit httpd.conf

I have a CentOS server I just setup, and I set the DocumentRoot in the httpd.conf file as /var/www/html/SITENAME and that works fine. The /var/www/html/SITENAME/.htaccess rules inside that ...
0
votes
5answers
941 views

.htaccess Permission denied. Unable to check htaccess file

I have a strange problem when adding a sub-domain to our virtual server. I have done similar sub-domains before and they have worked fine. When I try to access the sub-domain I get an 403 Forbidden ...
0
votes
3answers
242 views

.htaccess to redirect from www.example.com to www.example.com/main/

The content of my site is located in www.example.com/main/. I would like to use .htaccess to redirect users from www.example.com to www.example.com/main/ seamlessly, preferably so that URL remains ...
0
votes
3answers
388 views

Accessing Site with a WWW prefix results in a 500 internal server error!

I have migrated to a new server and when ever I try to use my site with the www prefix I get a 500 internal server error. This use to work on my previous host just fine. Here is a snippet of the ...
0
votes
1answer
163 views

Trouble with redirecting users from https to http using .htaccess

I'm trying to use a .htaccess file to redirect everything from https to normal http (for reasons beyond the scope of this post). I have tried playing the .htaccess file in the /httpdocs directory ...
1
vote
3answers
3k views

Redirect Web Subfolder to Root (/folder to /)

I am trying to redirect /folder to / using .htaccess but all am I getting is the Apache HTTP Server Test Page. My root directory looks like this: / .htaccess -/folder -/folder2 -/folder3 My ...
0
votes
1answer
2k views

.htaccess enabled, but not working

I been having some very frustrating issues with getting .htaccess to work on my new server. I'm not very experienced in managing a server, but I've spent the last three days pouring over documentation ...
1
vote
3answers
659 views

.htaccess not loading up on CentOS

For some reason none of my .htaccess files are loading. What are the common things that make this happen? I can use in httpd.conf, and create it there, but it doesn't read .htaccess files in my ...
0
votes
2answers
1k views

Enable nice urls / permalinks in CentOS + Apache

We've got a fresh CentOS box and we need to enable nice urls / permalinks. We're running Apache with mod_rewrite installed but I'm aware I need edit a few config files to get the basics up and ...