Ubuntu Servers :: Changed AllowOverride Still HTAccess Not Working
Apr 6, 2010
I have followed the tutorial from this site [URL]. I have changed this file /etc/apache2/sites-available/default and in this file I have changed AllowOverride None to AllowOverride All but still I get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. I have installed and reinstalled apache 2 time already.
View 8 Replies
ADVERTISEMENT
Apr 25, 2011
I had a problem with apache2 and getting .htaccess working. I have done some things and i believe its working the ErrorDocument command is anyway. I believe there may be some problems with the rewrites though.Im trying to take a urlhttp://localhost/showthread/123and make it display whats on http://localhost/index.php?showthread=123The rewrite rule is Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^showthread/([^/.]+)/?$ index.php?showthread=$1 [L]
[code]....
View 8 Replies
View Related
Apr 29, 2010
I am not sure what happened, but my .htaccess file is no longer working for my 301 redirects. I did have a hard time getting it working a few weeks back (when I first set it up), unfortunately I did not document it well. Main question is for multiple sites getting redirected, do I want the additional sites listed as aliases? My original setup virtual host config listed seven additional hostnames as aliases.
I later had difficulty with google listing these secondary domains within search result and hurting my page rank. So I setup 301 redirects, and from memory, I had to leave the alias names for the .htacces 301 redirect to work. Now it won't work either way. Can anyone tell me if the aliases need to be in place? Do I need to setup individual vhost files and add an .htacces 301 for each? What is the preferred way to do this? I tried reloading apache2 but it did not help.
Permissions for .htacces:
Code:
-rwxr-xr-x 1 eric www-data 866 2010-04-14 12:06 .htaccess
Attaced is my .htaccess. It resides in the site root directory. Also attached is the virtual host config file.
httpd.conf
Code:
NameVirtualHost *
NameVirtualHost *:443
AddHandler cgi-script .pl
RewriteEngine On
I'm still not sure after hours of reading the various how-to's, what should the file permissions be for the .htaccess. I have not performed any updates during the period it was working till now.
View 2 Replies
View Related
Sep 13, 2010
I run Samba version 3.4.7 as a Domain server for our company, and recently we reorganized our IP-addresses. And the Samba server also got a new IP-address. (192.168.1.60 -> 192.168.1.22). However, now new computers can not join the domain, and old ones can not connect to it correctly (they get a temp profile).
Windows XP gets a temp profile when connecting, and when trying to join a domain I get this error "A domain controller for the domain HAWAR3 could not be contacted. Ensure that the domain name is typed correctly. If the name is correct click Details for troubleshooting".
When trying to connect Windows2008R2 (already a member) it says:
"There are currently no logon servers available to service the logon request."
My guess is that is is some problem with WINS or something.
View 2 Replies
View Related
Sep 1, 2011
I am changing domain name for web, web is staying on same IP / ServerI want www.OLD.com to redirect (change address name in browser) to at the moment both point to same IP..am not sure why but this .htaccess is not working.
Code:
#Options +FollowSymLinks
RewriteEngine on
[code]....
View 1 Replies
View Related
Feb 9, 2010
I'm a newb when it comes to linux operating systems so I'm attempting to get better through experience. I work for a web development company and we use Ubuntu for our operating systems (the programmers at least). Anyways, I'm trying to install LAMP services and get them working. I have all L.A.M.P. services installed... but Apache2 is giving me a problem. I have an .htaccess file installed in a directory under my document root. But Apache2 is not interpreting it. I have AllowOverride All on but I can't figure it out. I did make a bogus .htaccess file attempting to make apache give me a error, nothing.
View 2 Replies
View Related
Nov 22, 2010
I installed AWSTATS on my LAMP 10.04 LTS and followed several tutorials URL...) but I can't secure the folder, either by an alias or by .htaccess. I tried both methods manually and by using Webmin.If you go to the URL www.mywebsite/awstats/awstats.pl it shows up, which is good, but this is the default installation site and anyone who knows awstats could possibly see my stats. The conf folder is /etc/awstats/, and I did an alias for that, then .htacess, but neither worked. With the .htaccess, I would get a password promt but the full stats page was visible behind the password promt, and if you clicked "Cancel" about 20 times or so the promt would go away and the full stats page would be visible.
The actual file that powers awstats is in /usr/share/lib/cgi-bin/awstats.pl, and I also tried an Alias and .htaccess seperately and neither worked.I restarted apache2 after each change and I've searched several forums, but I still can't figure this out.
View 2 Replies
View Related
Jan 27, 2011
I am running into a very strange problem where my my .htaccess file keep getting deleted.Attempted scenarios ftp upload file.txt rename to .htaccess ftp upload .htaccess ssh - wget url/.htaccess ssh - wget url/htaccess.txt, rename to .htaccess
[Code]...
View 7 Replies
View Related
Mar 10, 2010
I looked at my apache2 logs. Code:[Wed Mar 10 01:56:34 2010] [crit] [client 192.168.1.100] (13)Permission denied: /home/user/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable the server is located at /etc/apache2 the default place.
View 1 Replies
View Related
Jul 12, 2010
I have an existing blog that I migrated to ubuntu server recently. The site was running fine until I transfered it over to ubuntu. I get a 404 error whenever I view pages that is not my index. I believe it has to do with my .htaccess file.
I have enclosed the .htaccess and my default file taken from sites-enabled.
.htaccess
Code:
#####################
#PREVENT viewing of .htaccess file
<Files .htaccess>
order allow,deny
[Code].....
View 9 Replies
View Related
Aug 10, 2010
How can I redirect my URL after a site move.I have phpBB forum software installed on a 10.04 server, and I recently moved the forums from mysite.com/forums/ to mysite.com/.
So, a thread that looked like
mysite.com/forums/viewtopic=...
now looks like
[code]...
View 2 Replies
View Related
Feb 27, 2011
I have created a sub directory on my box on a website for my company. It is a page that has links to my tools I want to use when I do service calls. Links that connect to my servers webmin etc. Of course I don't want them found by webcrawling bots. I have created a .htpasswd file using htpasswd -c /location/to/file/.htpasswd.
This file is located outside the web. Just under the public_html folder. Then I went to the sub directory I want to protect and added a text file named .htaccess. It contains:
/home/sites/www.domain.net/tech/
AuthType Basic
AuthName "Some long name"
AuthUserFile /home/sites/www.domain.net/.htpasswd
Require valid-user
ErrorDocument errornumber /home/sites/errorpages/403.html
I also opened the httpd.conf and changed AllowedOverride to All
The error document doesn't work either.
I then restarted the httpd service. I try to access the site and it lets me right in without asking for a password. It is apache 2xxx on Centos 4.5. Webmin under Apache confifirms all this.
View 12 Replies
View Related
Nov 25, 2010
I want to use rewite module to change my site url from site/index.php to site/cat/ for example I have created .htaccess file in the directory where the file is and add to it:
Code:
RewriteEngine on
Rwerite ^cat$ /site/index.php
Here site is not my site, it just in example. I have rewrite.load in the loading list of modules and I can see it loads in phpinfo(). AllowOverride is set to All for the current site, but no redirect is made on site/cat
View 2 Replies
View Related
Feb 22, 2011
I have searched high and low both on this website and the big G and nothing.I have a VPS with fresh CentOS 5.5 install and can't seem to get the server to act on the htaccess file.
View 1 Replies
View Related
Sep 29, 2010
We are trying to migrate from a centos server to ubuntu server, but we have some problems with an application called Topincs [url].
The installation is quite simple and I did it several time (but with ubuntu it's the first time).
Probably there are some parameters to set that I don't know, but even if the installation works fine and I can see the home page, the application doesn't work because RewriteRules aren't applied.
First I tried to ensure that mod_rewrite works fine and I found a weird situation: rewriterules work if they are in .htaccess but don't work if they are directly in http.conf.
View 4 Replies
View Related
Dec 16, 2010
Is anyone here fluent with the usage of the .htaccess file? Is it the way to go to deter search bots or is there a better method? Never mind. I already have a thread about .htaccess here.
View 1 Replies
View Related
Sep 28, 2010
I have checked and double checked the .htaccess and httpd.conf to make sure everything is correct and I'm sure it is. I have AllowOverride set to All in the httpd.conf, Apache sees and is reading the .htaccess because I get a 500 Error when I put garbage text in the file. I'm lost now.
View 9 Replies
View Related
Jul 22, 2010
After reading this pdf on top 5 things to log for security, ive decided to attempt this for my webserver. how i might setup some logging systems to do these tasks. Basic things i need to be able to do: Record things like password attempts on htaccess files, from what IP address, and how many attempts there were. Any useful links anyone can think of to get me started? Im a student programmer at university so any programming i should be able to cope fine.
View 2 Replies
View Related
Feb 23, 2010
I have a recently setup my first linux server (hardy) and am having problems with the permissions for a log file being changed. I believe this is caused by syslogd, but am not sure how to correct it. Bacula will report it is unable to start a backup because it is unable to open the log file (/var/lib/bacula/log) "permission denied". After changing the owner from syslog to bacula, the backup will resume. However, the following day I encounter the same problem because the owner of the log has been changed back to syslog.I see where the permissions for logs are altered in sysklogd, but I am not certain how to make bacula exempt or if this is the right approach.
View 1 Replies
View Related
Jan 19, 2011
I have set up Ubuntu 10.04 and am running it on a VPS. I have everything the way I want it but I have encountered a problem. When I created my user, I did this:
adduser myname
that worked fine, it also assigned me to group called myname, which isn't what i wanted. so i tried to change my group to staff with the following:
sudo usermod -g staff myname
it works fine and i can verify my new group by:
groups myname
and get:
staff
but...now here come the bit I don't understand, when I make a new file/folder and then look at their ownership it is the old group (ie. myname). is this right? shouldn't the ownership of the file now be myname staff? not myname myname.
this is what i did to create a new file, while logged in under myname:
touch a
mkdir da
ls -al
View 5 Replies
View Related
Jul 5, 2011
I run SSH daemon on my Fedora 15 (server). When I generate public/private key on my laptop (client) and put public key to authorized_keys on server it works excellent. But when I change IP address of laptop (change WLAN) I have problem to connect. I searched GOOGLE but I havent find any information. I also tried the same from other laptop with the same result.
View 11 Replies
View Related
Aug 10, 2010
I'm going to make a nightly backup copy from one server to another, using rsync. If I have a sufficiently large file, say 4+ GB or so, I'm not interested in copying the whole file if only a small change has been made. Can rsync detect small changes on block level and backup only those if needed?
View 2 Replies
View Related
Sep 27, 2010
Im wondering about proxy servers, see it is like this: I got banned from a samp server and i can't get my ip changed (it's not the local address it's the one all the computers in my house shares) I searched a little bit and discovered that a proxy server would be the best option. If I have it in some one else house I will get another ip right? Is it possible to install some software on my laptop and just use that? and how do I do that? Btw I found this: [URL]. But I didn't understand so much of it.
View 4 Replies
View Related
Feb 9, 2011
I don't know if this the right place to ask this question. If not excuse me.I installed apache server on my ubuntu and I've changed the www folder in etc/apache/.../default from /var/www to home/user/www but now i haveForbiddenYou don't have permission to access / on this server.
View 3 Replies
View Related
Apr 19, 2011
Today, after postfix security upgrade, /tmp permissions changed from 777 to 755 on my Ubuntu Server 10.04.2
View 1 Replies
View Related
May 23, 2011
I'm working on getting transmission-deamon working with remote access.
everything says edit
sudo nano /etc/transmission-daemon/settings.json
specifically "rpc-whitelist
however, as soon as I do. "sudo service transmission-daemon restart" the settings reset.
View 4 Replies
View Related
Jun 25, 2011
My original config:
**Partition/Drive info**
/dev/sda Boot----------> 298.09 GB Hitachi HDT72503
20GB /
16GB /swap
50GB /var
[code]....
1. For some odd reason I tried connecting to a samba share as I had it setup and I could not.
2. Looked at webmin and it said my whole /dev/md0 RAID5 was being used..about 7.8TBs. decided to check my RAID5 setup and drives and noticed
**NEW Partition/Drive info**
/dev/sda Raid Array 1 1.82 TB SAMSUNG HD204UI
/dev/sdb Raid Array 1 1.82 TB SAMSUNG HD204UI
/dev/sdc1 /
[code]....
I didn't connect any new drives or anything. I had checked my "mdadm.conf" and "fstab" and everything looked the same?
View 3 Replies
View Related
Nov 3, 2010
Ihad changed wifi channel using kismet on ubuntu . After that the wifi is not working properly, how to revert the changes ? before changing the channel no wifi was working properly.
View 1 Replies
View Related
Apr 9, 2010
A week ago or so neither ssh nor scp were working when attempting to connect to my on-campus computer from home. ssh was complainig about the key not matching and I figured out I could just delete the config file it was reading the (now old) key from and let it create a new one with the updated key upon prompting me whether or not to trust the remote host.
However, even though ssh is now working, I can no longer use scp. I issued scp -v and discovered a bunch of errors. scp prompts me for the remote password and even prints the message of the day on the remote computer but then just hangs and doesn't seem to be copying any files. I'm sure the issue is with the whole key change issue but I can't quite figure out why ssh would be working just fine and scp would be failing.
View 1 Replies
View Related
Feb 2, 2010
I recently changed my username but now the Home button (under Computer Tag) on Kirchoff men is linking old user, how can I change it?
View 1 Replies
View Related