Ubuntu :: Set Up Custom Error Messages Using An .htaccess File
Dec 10, 2010
we're running Apache/2.2.11 (Ubuntu) and trying to set up custom error messages using an .htaccess file that looks like this
[Code]...
When I save this to var/www/ it has no effect (tested on another server but using a shared hosting package it works fine).
View 4 Replies
ADVERTISEMENT
Jun 21, 2011
I have a web application that runs on PHP and MySQL on opensuse 11.4 (web server) and opensuse 11.1 (database server).The web application uses a .htaccess file that causes my site to error with error "403 forbidden". If I add "+FollowSymLinks" at the top, it loads the application just fine.But problem is that I have an issue with the application, and they believe that my .htaccess file is at fault since it's custom. I hightly doubt it but wanted to eliminate that as a concern.
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
May 17, 2010
I run Debian 5.4 with ISP Manager as CP. I put a .htaccess in the root directory of my wordpress blog. The content of the .htaccess is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
[Code]....
But after I created a static page and change permalinks in wordpress with anything other than standard I get a browser 404 error (not 404 error with template).
Location of the blog content that is shown in CP: /var/www/sorin/data/sitename.ro Only the index of the blog is loading. What can I do? I have Debian up-to-date.
View 1 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
Apr 27, 2011
I couldn't help but notice that there are some lines in the default file that resemble those that should be in a htaccess file.
AllowOverride None Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
[Code]...
If I am running multiple virtual hosts, what happens to the default file? When I put my ip into a browser "http://ip.ip.ip.ip" I get a forbidden message. but all URLs point to where they are supposed to... Maybe its because I don't have an index file in the www folder.. (not at the machine, will try it later to see what happens).
View 1 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
Jun 15, 2011
I am using Apache with Kerberos security enabled. The http page simply lists the directories contained in /var/www/html. I want to make only one of the directories in the document root secured so that when someone clicks on it, it requires him/her to enter credentials. Right now when I place the .htaccess file in the directory I want to protect, the directory is hidden from the list and the user has to enter the whole path to get authenticated and access the files.
I've tried Options +Indexes which was posted all over the net, but it didn't work.
View 3 Replies
View Related
Jun 10, 2009
I tried to force download of certain file types - pdf,doc,jpg - instead of opening them in applications. I used AddType application/octet-stream .pdf and AddType application/force-download .pdf but it doesnt works. Has anybody an idea how to solve this problem?
View 1 Replies
View Related
Feb 2, 2011
I need to redirect through a .htaccess file in my root folder. The redirect needs to be done from http://www.department.univeristy.edu/reuir to a different server [url]. I am having trouble in determining the pattern that is required for it to take effect.
View 2 Replies
View Related
Mar 16, 2010
In my nagios server, an htaccess file have been created for it so any time you want to open it, a window opens for you to enter user name and passwords. Now, what I want to do now is to integrate the nagios into a portal that is written in php so that when customers login to the portal, they can access the nagios with out it popping out the user and password windows. What is going to happen is, the password of nagios will be store in an orient database so the users when they try to access nagios true the portal, they will be login automatically.
View 1 Replies
View Related
Jan 13, 2010
I would like to share some files with my customers. I would like to be able to give them different passwords with different rights. I would like to know which customers have downloaded the files, how many times and from wich ip. I would like to let the customer download a file just a number of times.(optional) I would like to be able to upload from web (optional) And with a polite presentation to the customer.Does it exists? Yes. I'm asking for something better and I hope somebody used it and is still happy with it.
View 2 Replies
View Related
Apr 23, 2011
I have a site hosted on a cheap hosting company and I need to allow write access to certain users in certain directories, sometimes on a file basis.
Q: how do I do that in a .htaccess file?
I have never used .htaccess although from what I read it looks straightforward but when I try it, I get a "500 server error" even with the example .htaccess file the hosting company suggested I use. (I have informed the host as they require and am awaiting their answer)
The site is automatically set up with a couple of dot file in the root directory when I got it, they are:
.htaccess file
AuthType Basic
AuthUserFile "/home/mydomain/www/www/.htpasswd"
AuthName Limited!
require valid-user
Q: Is there in this something overriding my .htaccess in a bad way? (googling for AuthName shed no light on my problem)
.htpasswd
mydomain:$apr1$vcPc9...$kz4vmtvfznKfFmHktN0CI0
Bill:$apr1$C.FLI...$KmvqrHFt6i/.rMhfREtRV0
I added the user Bill, apparently successfully, the first line and .htaccess were set up by the host.
View 2 Replies
View Related
Jul 8, 2010
After moving a website folder on my local development machine to another drive, then moving it back, I got a 403 error. Most of this problem had probably to do with rights that got messed up. After deleting the code and restoring it from SVN, the rights seemed allright. The error stayed however.
The setup is a bit complex, as follows:
I have Ubuntu 10.4 as development machine, trying to mimic the server as much as possible We use Eclipse + SVN and I create all projects in a local folder under my user account In /var/www-vhosts I create folders for each vhost, like this one: test.localhost test.local/index.php: includes the index file of the project
test.local/.htaccess is a dynamic link to the htaccess file in a project subfolder
I get the following error in the apache error log:
The problem seems to be the .htaccess file, or the link to it. When I empty the htaccess, nothing changes When I remove the link, the index-include produces some output (in the apache error log) When I remove the link and replace it with the actual file, I get another error:
View 1 Replies
View Related
Jan 26, 2010
I have a folder on my server i want to protect with http authentication but i have problem. i created a password htpasswd -c .htpasswd razzera
then i created a .htaccess file in the folder and added
AuthType Basic
AuthName "Restricted Files"
# (Following line optional)
AuthBasicProvider file
AuthUserFile /.htpasswd
Require user razzera
but when i go tho the folder it wont request any login details. why ??
View 6 Replies
View Related
Apr 7, 2009
I have recently merged two Joomla 1.0 sites I ran into one. I imported the articles I wanted to keep to the new site, and I have the old site's domain pointing as an alias at the new site. The new site is www.theouthousers.com . The old site was www.bludblood.com .
I also have the core SEF URLs on, using the htaccess.txt file that came with Joomla.
I have one writer for the old site who linked to his articles in various places, so I am trying to set up redirects for him so that he doesn't have to change all of his links.
For instance, I need something like:
http://www.bludblood.com/joomla/inde...d=25&Itemid=51
To redirect to the equivalent location on the new site:
[url]
And I also need specific links like:
[url]
To redirect to their new counterparts:
[url]
Keeping in mind that www.bludblood.com is now an alias of www.theouthousers.com, is there any way to do this? I have been trying with rewrite rules and redirects, and cannot seem to achieve the desired effect.
Tried various versions of:
Code:
Redirect [url] [url]
With the http, without, as regexps, as 301s, as permanents, etc, and it just will not work. Also tried as RewriteRule.
View 2 Replies
View Related
Sep 1, 2011
I've had Ubuntu 11.04 installed on my desktop since it's release. Up until an hour ago, it was working fine. I clicked on an update from the update manager, now booting into a graphical mode is completely broken, (the start-up load hangs at 'Check Battery State ... [0k]'). I restarted my computer, and booted into safe mode, and launched the terminal. This all works fine. I then typed :
Code: sudo gdm start into the command prompt, hoping that I would be able to start things manually. Instead, it spat out this: Code:
gdm-binary[230]: WARNING: Unable to load file '/etc/gdm/custom.conf'. No such file or directory.
gdm-binary[230]: WARNING: Unable to find users : no seat-id found.
gdm-binary[230]: WARNING: Gdm Display: display lasted 0.070467 seconds
The last line was printed about 8 times, with slightly different times, before it gave up and failed. Some information which might help, I have Gnome 2, Unity and KDE (not sure which version), installed. My graphics card is the GTX 275, and I have driver the Nvidia driver 275.21. So yeah, I think the update has gone and moved custom.conf somewhere, but I have no idea on how to fix it. I have a graphics programming assignment due on Friday and I would be eternally grateful if I could get this fixed well before then.
View 2 Replies
View Related
May 29, 2010
Can someone please help me? I'm a noob and I've never had a problem like this before.Ever since I installed on this system every time I start up I get a bunch of error windows.I tried pressing the "Don't Delete" or "Reload" buttons as appropriate. Then the applets sometimes reappear and sometimes they don't. Please help a noob!
View 2 Replies
View Related
Jul 1, 2010
I just upgraded to 10.04 through the Update Manager. During the updated however I got an error telling me that it was unable to install something. Sorry, I can't remember what it was; it didn't stop the updated so I assumed it wasn't that important. Anyways, I don't know if this is because of that error, but during the boot process and when shutting the computer I get console messages. When I boot it tells me that "mounting none on /dev failed No such device" and when I shut down I get these messages.I see this was asked before and that it isn't a big issue, but I'd still like to solve it. The problem is that I'm pretty new to Ubuntu and Linux in general I don't know how to follow the very general instructions given in that thread.
View 2 Replies
View Related
Nov 10, 2010
Problem-cannot mount 2 other samba computers on my ubuntu 10.04 via 'sudo mountall'. Additionally I now get Firefox/Thunderbird error messages as listed below. Had no problems with ubuntu UNTIL I attempted install of VirtualBox running WinXP client in my Ubuntu host. VirtualBox seemed to install ok but upon startup of WinXP client all I got was a black screen. To close it I had to do "Power Off" which VBox manual says is like a hard power off and is to be avoided. So I guess it's like I crashed XP within Ubuntu.
Now - ubuntu boots ok except will not auto mount other samba connected computers. Manually running 'sudo mountall' in terminal gives --
p { margin-bottom: 0.02in; page-break-before: auto; }p.cjk { font-size: 10pt; } swapon: /dev/disk/by-uuid/24c4c591-47ec-44f1-ac52-c0e2f5850c18: swapon failed: Device or resource busy
mountall: swapon /dev/disk/by-uuid/24c4c591-47ec-44f1-ac52-c0e2f5850c18 [2235] terminated with status 255
mountall: Problem activating swap: /dev/disk/by-uuid/24c4c591-47ec-44f1-ac52-c0e2f5850c18
retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs( manual page (e.g. man mount.cifs)
mountall: mount /media/samba_share [2239] terminated with status 32
Additionally I now get these warning messages when Firefox and Thunderbird start. (They do start and seem to work fine.)--
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL] for information. (Details - 1: Server ping error: IDLmg.org/CORBA/COMM_FAILURE:1.0)
p { margin-bottom: 0.02in; page-break-before: auto; }p.cjk { font-size: 10pt; } What I've tried-
1) fstab UUID matches error UUID above and matches UUID from blkid command:
fstab =#Entry for /dev/sdc2 :
UUID=24c4c591-47ec-44f1-ac52-c0e2f5850c18 none swap sw 0 0
p { margin-bottom: 0.02in; page-break-before: auto; }p.cjk { font-size: 10pt; }
blkid = /dev/sdc2: UUID="24c4c591-47ec-44f1-ac52-c0e2f5850c18" TYPE="swap"
2) Reinstalled mountall from synaptic pkg manager; did not try to remove mountall and reinstall. To remove, removes LOTS of other packages from system - not brave enough to do that (yet).
3) Ran fsck on swap partition as below. Swap not found. (that confuses me.)p { margin-bottom: 0.02in; page-break-before: auto; }p.cjk { font-size: 10pt; } john@johndesk:~$ fsck /dev/sdc2
fsck from util-linux-ng 2.17.2
fsck: fsck.swap: not found
fsck: Error 2 while executing fsck.swap for /dev/sdc2
p { margin-bottom: 0.02in; page-break-before: auto; }p.cjk { font-size: 10pt; } 4) deleted all the files in ~/.dbus/session-bus. Ubuntu just rebuilds the same file back.
View 3 Replies
View Related
Dec 29, 2010
I have Ubuntu 9.10. The batter drained several days ago, and now when I attempt to boot I simply get a string of indecipherable error messages which last for about 5 minutes, and the screen then goes completely black. I am not able to even get to the login screen. Windows 7 Starter boots fine, so it's definitely a software issue. Any solutions short of completely reinstalling? I really don't want to lose all of my data.
View 2 Replies
View Related
Mar 1, 2011
Why is it that I kept getting error messages that basically were saying that could not connect to the Ubuntu servers to do download of updates to Ubuntu that is until I switched to the MAIN ubuntu server at which point it worked fine.I tried several of the Ubuntu servers other than the MAIN server and kept getting error messages. Is there some problem with those other servers ?
View 1 Replies
View Related
May 1, 2011
I just installed Natty on my laptop. It has SSD drive, so to align the file system to the physical block size properly I created the partitions manually. After the installation it only boots to the GRUB recovery console, so I tried re-installing GRUB from Live CD by:
Code:
sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
It now boots to the system but always shows the following error messages instead of the GRUB menu on every boot:
Code:
error: file not found.
error: file not found.
error: no suitable mode found.
error: no video mode activated.
error: file not found.
error: file not found.
I suspect that I've missed out something during the installation, since SSD drives seem to need some more attention.
View 2 Replies
View Related
May 12, 2011
I am trying to install ubuntu on my old laptops but dis message keep coming up on all code...
View 5 Replies
View Related
Jun 20, 2011
I'm not sure when this occurred, but it happened either when I was trying to install the new gnome-shell, or after installing kbuntu. In any event, when I try to boot Ubuntu 10.04, I get the login screen where I enter my username/password. After doing so, I get the following error messages (in this order). I should note that add the login screen, I have the option boot gnome, kde, failsafe gnome, etc. I tried all the options with the same result:
"Cannot open consolekit session: unable to open session: failed to execute to program /lib/dbus-daemon-launch-helper:success"
"Cannot enter home directory. Using /"
"Could not duplicate ICEauthority file/.Iceauthority."
View 5 Replies
View Related
Mar 19, 2010
I have a CLEVO laptop and it currently has Windows 7 installed. I now want to create a separate partition to install Ubunutu 9.10 64bit. I attempted to install this and the install part worked fine but as soon as I rebooted all I seem to be getting after the BIOS is 'grub loading'. I get no other error messages and am stumped on what the problem is. It also meant I couldnt load windows either but I fixed this by loading the windows cd, running repair and then fixing the MBR which another thread mentioned. Once this was done windows loading up ok. I have checked nearly every setting and it has made no difference. I tried reinstalling 9.10 but came up with the same problem. I am not sure what I did in Windows may have caused it. I have a 320gb drive and I shrunk it using disk management as I know the ubuntu will see this free space and install the OS onto it. Should I have left this and let 9.10 create some space automatically during install?
View 1 Replies
View Related
Feb 9, 2011
I have a LAMP installation for learning php and mysql. My online trainer pointed out that we always get a white screen when the php is wrong, when we should get error messages that say which line in the code is wrong etc.
I recently reinstalled mysql so it is the latest version from the repositories for Ubuntu 10.04.2 LTS.
Is there a way to make error messages show up?
View 3 Replies
View Related
Mar 29, 2010
What do these error messages mean.
View 9 Replies
View Related
Nov 5, 2010
Just bought a brand new Acer Aspire 5745G, straight away I wanted to install Ubuntu 10.10, I stuck in the cd and rebooted the new laptop that currently only seemed to have Linpus Linux, I then got masses of error messages saying something such as cannot run var/ etc etc and then
:cannot touch 'var/lock/subsys/local': input/output error
and then...
EXT2-fs error (device sda1) : ext2_lookup: deleted inode referenced (lots of numbers here)
It does this for many, many lines then sites there for ages doing nothing and wont allow me to type any commands ( I dont know any command really apart from 'reboot') and then finally after 5 mins or so shows the command prompt [root@localhost /]# but I cant do anything from here.
I've done some searches and found this thread:
url
but startx and system-cofig-display dont work and just says bad commands.
Ive also tried changing the settings so it always reboots from dvd, same problem, made a USB ubuntu start up, forced booting from usb, same again.
View 4 Replies
View Related