General :: Apache Not Reading .htacces On 443?
May 4, 2011
I've used Apache for awhile, but my linux isn't all that great.I'm running the lastest Apache 2.x on Debian, I have mod_rewrite and while I was going some basic testing on port 80 the rewrites in my .htaccess worked fine. Then I setup Apache to force all :80 to :433 and now the .htaccess are not being read.I've been messing with the AllowOverrides with no change. I've also confirmed that AccessFileName is set to .htaccess. These are my hosts now:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@example.com
[code]...
View 4 Replies
ADVERTISEMENT
May 4, 2011
I don't understand the results of a simple performance test I ran using two basic scripts (running on a high end server):
perfVar.zsh :
#!/bin/zsh -f
MYVAR=`cat $1`
for i in {1..10}
[code]...
Performance test result:
> time ./perfVar.zsh BigTextFile > /dev/null
./perfVar.zsh FE > /dev/null 6.86s user 0.32s system 100% cpu 7.177 total
> time ./perfCat.zsh BigTextFile > /dev/null
./perfCat.zsh FE > /dev/null 0.01s user 0.10s system 91% cpu 0.118 total
I would have thought that accessing a VARIABLE was way faster than reading a FILE on the file system... Why this result ?Is there a way to optimize the perfCat.zsh script by reducing the number of accesses to the file system ?
View 3 Replies
View Related
Jul 5, 2010
let me know that why htaccess file is created?nd what is important of it in dynamic website development.
View 5 Replies
View Related
Jun 12, 2009
With F11 installed Apache is having permissions issues reading files out of the html directory. Only wants to work with permissions set to read for other. [Thu Jun 11 23:25:28 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /var/www/html/index.html Tracked down the permissions issue. Is there a good reason not to change the group to apache and remove world read?
View 1 Replies
View Related
May 20, 2010
i installed kernel 2.6.34 to fix my lid closing issue, and that went great. but now when i go to reinstall my broadcom i get this error. Code: Reading package lists... Done Building dependency tree Reading state information... Done bcmwl-kernel-source is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up bcmwl-kernel-source (5.60.48.36+bdcom-0ubuntu3) ... Removing old bcmwl-5.60.48.36+bdcom DKMS files...
[Code].....
View 9 Replies
View Related
Jan 26, 2010
I have a linux hard drive that I can plug into an external USB interface.. how do i read from this? from windows it only shows it as a unpartitioned drive
View 4 Replies
View Related
Jan 25, 2011
user@user-laptop:~$ sudo dd if=sd_backup of=/dev/sdd bs=4M conv=noerror,sync
205520896 bytes (206 MB) copied, 28.564 s, 7.2 MB/s
247463936 bytes (247 MB) copied, 57.1285 s, 4.3 MB/s
260046848 bytes (260 MB) copied, 73.2388 s, 3.6 MB/s
289406976 bytes (289 MB) copied, 104.121 s, 2.8 MB/s
[Code]....
How come dd gets slower after copying this 8GB file? What can I do about it?
View 1 Replies
View Related
Apr 28, 2011
I have the following bash script:
#do some time consuming task here read -p "Give me some input: " input
Now as you might've guessed, if users press some random keys during the "time consuming task," they're read into input as well. how do I clear stdin (or at least ignore it) before I issue the read command?
View 1 Replies
View Related
Apr 28, 2010
I have a laptop with Ubuntu 9.10 installed. It will not boot to the login screen. If I remove this HDD and connect it as a secondary drive to another PC running Ubuntu, will I be able to access the files on this HDD? There is a lot of data which I haven't backed up which I need to retreive. I don't think the hard drive has failed.
View 6 Replies
View Related
Jun 8, 2011
is there any API to read content of PDF file & store it in buffer?
View 14 Replies
View Related
Nov 17, 2010
been playing around making a server to play some games on running centos 5.5
what ive spent a while looking for (a few days) is a way to make a file which i will call startup this will contain some values
Code:
mod_directory="etpub"
port="27960"
log_name="console.log"
vm="0"
dedicated="2"
[Code].....
View 1 Replies
View Related
Apr 20, 2010
I have a .bkf backup file, created by the Backup utility that Microsoft provides with Windows XP. Is there a way to read the contents of the file using a non-Microsoft OS, preferably Mac OS X or Linux?
View 1 Replies
View Related
Jan 25, 2011
I have a Unix based question. Intro:Trying to create local image which is coded by the cryptsetup tool. Here are my steps:
abcdef# dd if=/dev/zero of=image.img bs=512M count=1 1+0 records in 1+0 records out 536870912 bytes (537 MB) copied,6.39732 s, 83.9 MB/s abcdef# cryptsetup luksFormat image.imgWARNING! ======== This will overwrite data on image.img irrevocably. Are you sure? (Type uppercase yes): YES Cannot read device image.img.
Q:How can I make it work correctly(creating local image with crypting support) or how can I (if its possible of course) to swindle my os?
View 1 Replies
View Related
May 9, 2010
I've used ext2ifs drivers to mount my ext3 partition in winxp, but I don't have write acces, it's mounted in a read-only mode, and i didn't check the rad-only box during the installation of the drivers.I've used help from the official site http://www.fs-driver.org/and this tutorial http://www.dedoimedo.com/computers/l...s-windows.html
It's a straithfoward proces so I dont understand what I did wrong.I'm using fresh xp install with (more or less) all the updates and ubuntu 10.04Also the partition is mounted at /home, so I dont know if that makes any diferance.
View 3 Replies
View Related
Dec 2, 2010
I have a file named file.txt with the following contents
Code:
19 man
24 house
44 dyam
90 random
I want to read the file into array and store each line in each index. I've tried using the following code.
Code:
dataarray=($( < file.txt ))
It stores each word in each index rather than each line in each index.
View 3 Replies
View Related
Apr 26, 2010
I am having a laptop with Vista installed on it. I have an Ubuntu live CD (karmic) which is refusing to boot on this machine. I get an error : "Error reading boot CD" and a reboot button. I have tried this cd on other machines and it works fine. I tried live CD of kubuntu also but the same error message appears. What could be the reason?
Machine spec: 2GB RAM, Intel core 2 duo processor.
View 5 Replies
View Related
Mar 2, 2011
My requirement is that I wanted a shell script which should read the alert.log(oracle) and should send the alert to my email if any error encountered on daily basis. I have a script which does the same job but at the same time it creates a new alert.log whenever any error occur. But I don't want the new alert log I wanted to read the same alert log daily and if any new error come should alert as email.
View 3 Replies
View Related
Mar 21, 2011
I know that cat can output the file, but how do you store that output in a variable to process:
Code:
CONTENT=cat file.txt
This doesn't seem to work?
View 3 Replies
View Related
Apr 5, 2011
My son wanted to try Ubuntu , was tired of win7 OS, backed up much wanted links from old OS onto USB drive, could not find files, could not find icon on desktop.
View 2 Replies
View Related
Oct 15, 2010
I have an situation where I want to read a file into my script that lie on a remote server. I have ssh-keys set up just don't know how to do this.
View 7 Replies
View Related
Feb 18, 2010
I wish to know what could be the possible cases for this error:cp: reading `filename': Input/output errorI am getting this message when I am trying to copy a big file of around 50MB.
View 2 Replies
View Related
Feb 2, 2011
We have G5 PPC with Mac OS 10.xx (panther?). I need files from it, but we don't have the passwords for the machine, and have no disks with which to recover data or reinstall the OS. So, I used an Ubuntu Jaunty Jackalope 9.04 disk and mounted the drives, but when I try and open the target dir, I get permission problems.
View 2 Replies
View Related
Aug 12, 2010
I am trying to configure rsh on..but it comes up with a error message error reading information on service -rsh...
when i query rpm -q rsh..It displays rsh package..
View 1 Replies
View Related
Jun 23, 2011
I am a bit confused about a dual booting system. I Already have windows 7 on my computer and wish to install ubuntu 11.04 but I keep reading about Grub 2. Does grub automatically install with ubuntu or do I need to install it prior to installing ubutu ?
View 10 Replies
View Related
Mar 2, 2010
I am installing Nagios Monitoring tool in RHEL5 and I got stuck at one point. The details are as follows:
Nagios version:3.0.1
At the end of installation when I try to execute the command
#chkconfig --add nagios
Its displaying "error reading information on service nagios : no such file or directory".
View 5 Replies
View Related
May 27, 2010
I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?
View 2 Replies
View Related
Mar 8, 2011
I having Ubuntu 10.04 Lucid Lynx at Dell laptop. i want to read documents written in hindi language. I have a font called Mangla installed in open-office that helps to read these files. But if I open them in gedit or display them by using following command, I cannot open them in readable format:- cat Hindi.txt
[Output] ....
I want this file should also be readable to a executable file of (CMU's toolkit). I have installed several types of fonts such as lohit_hi.ttf. The system does seem to be recognizing this language.
View 14 Replies
View Related
Jun 28, 2011
I wish to read the Manufacturer data and other details such as Device ID, Serial number on a USB drive.
1. Could anyone help me out with information on the memory structure of a USB drive? (which location is the mnfr data stored?)
2. Are there are any commands in Linux that will help in reading/accessing this data?
View 3 Replies
View Related
Aug 18, 2009
I want to run a linux command with apache through web browser and that's is not working. and it's working properly when I execute this command through terminal, where is the problem?
NOTE: apache have the privileges to execute the command
View 7 Replies
View Related
Mar 21, 2010
I have a problem when trying mounting, checking my ext3 partition. Is a external HD with my "portable" Linux system. Suddenly started to fail, when I try to boot it, the GRUB can't locate the config file, and show me the command line. I boot from my internal HD and try to mount it and have this messages.
Code:
sd 2:0:0:0: [sdb] Attached SCSI disk
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdb] Unhandled sense code
sd 2:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
sd 2:0:0:0: [sdb] Sense Key : Medium Error [current]
sd 2:0:0:0: [sdb] Add. Sense: Unrecovered read error
[Code]...
1.- What exactly is in this first sectors (ext3 metadata?)
2.- Is there some way to fix this quickly, maybe with some "sectors relocation", Or re-create the first logical sectors.
3.- If not, who could i make a full backup (something like dd copy), of all the partition.
4.- How fix it?, even with a long prosses, i don't know, maybe backup the file structure (with forensic tools) and copy into a new (and re-located) partition. This is my last option because the forensic tools sometime can't recover all files and sometimes only parts, or very old files.
View 7 Replies
View Related