Server :: Debian Apache2 Rewriting Subdirectory To Root Breaks Accessing Cgi Scripts

May 25, 2010

OS: Debian 5.0.4
Server: Apache2

I've used mod_rewrite to rewrite my apache2 root ( to point to /var/www/drupal6/ instead of /var/www/. I also have a script installed in my cgi-bin (/usr/lib/cgi-bin) but since the rewrite I can't seem to access it. When I go to my.server.come/cgi-bin/, I get a page not found from my drupal.

Is there a way I can access my cgi-bin without resorting to accessing my drupal through

Background: I have installed drupal CMS which has a base address of as it resided in /var/www/drupal6/. However I wanted users to be able to access it as so I added the following into my httpd.conf

NameVirtualHost *:80
<Directory /var/www/drupal6>
RewriteEngine on
RewriteBase /


View 1 Replies


Server :: Apache2/Worpress Rewriting Url To Avahi's .local

Dec 18, 2010

I've got a home network that uses avahi's magic '.local' name service.

One computer is a server running Debian Testing/Apache2/Wordpress 3.0.x.

All the computers in the house have avahi-compatible service, so reaching the server is easy for computers.

I'd like to use my phone via the wireless lan to use the wordpress installation. The gotcha is, I can enter the ip address and get to the login page. The next page, the ip address is re-written to the avahi host name.

As an example,

1. I enter and I land on the default page.

2. Click on a page of content.

3. URL is rewritten from the numeric address to the avahi, text address.

4. This is a 404 error on the phone. The laptops handle it just fine.

How do I stop apache2 from rewriting?

View 1 Replies View Related

Debian :: Apache2 Start Error Starting Web Server: Apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost?

Dec 9, 2009

I am getting this error

Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address
no listening sockets available, shutting down Unable to open logs failed!

also what is

View 1 Replies View Related

General :: Removing A Root Reference In Subdirectory?

Jun 4, 2010

While saving a file I made a typo and performed the vi command ':w~' instead of ':w!' and I created a root '~' instance in one of my subdirectories. How do I remove this reference without wiping out the entire main /root /~ directory? Do I use unlink()?

View 1 Replies View Related

General :: Copy Everything In A Subdirectory Across To The Relevant Subdirectory Elsewhere

Sep 16, 2011

At the moment I'm doing:

for i in mdx/[0-9][0-9].png; do cp $i ../../d_s_c/images/mdx ; done

But as well as the directory mdx, I also have other directories called ntt, etc.

How can I say 'For everything in a subdirectory, copy it across to the same subdirectory over at at ../../d_s_c/images'?

View 1 Replies View Related

Debian :: Accessing Files As Root In Lxde?

Jan 26, 2010

i just installed avlinux wich is based on using lxde,and im used to gnome,when i want to access files as rootin gnome i just use "gksudo nautilus".but i dont know of a command forlxde that has the same effect.can someone tell me if there is a similar

View 2 Replies View Related

Debian :: Accessing Windows Volumes From Non Root Users?

Mar 25, 2010

How to access Windows volumes from non-root users?

View 4 Replies View Related

Server :: URL Rewriting Without Redirection?

Apr 28, 2011

I got a peculiar request at work, and maybe you folks can help me out.I want to rewrite URL '' as '' (in the browser address bar) still display the content of ''

View 2 Replies View Related

Server :: Sender Name Rewriting In Postfix?

Jan 8, 2010

I want a mail server that can relay mails to the internet using GMail and fetch the mails of different accounts into the mail server and distribute them to their respective users. I am using Postfix, Fetchmail and Dovecot. I have a PC with 3 users.I use the PC having Ubuntu 9.04 and share the internet. We all send mail and retrieve mail. We do use Evolution and Mutt sometimes. We want to send our mails with our email_ids without even logging in.



I have created my custom certificate using SSL. I've created the Postfix's file following a tutorial on the net. Currently mails are going fine, but with our local email_ids. I want Postfix to rewrite our local email_ids with the equivalent email_id on the net.

View 2 Replies View Related

SUSE :: Apache2 Reload Error Cannot Load /usr/lib64/apache2/ Into Server?

Nov 19, 2010

I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/ into server: /usr/lib64/ undefined symbol: apr_memcache_add_server

View 9 Replies View Related

Server :: SVN Passwd File On Debian 5.0.7 And Apache2

Dec 31, 2010

I have a Debian 5.0.7 installed to my server. I try to install Apache and SVN to this server. I use this tutorial:
But is unfortunately not working.

My apache virtual host configuration file is:


This passwd file containing 1 user:


The rights for the passwd file:


And apache2 is running like this:


And if I try to login to my page I got an "Internal Server Error" page.

And my error is in the apache log is this:


So I'm a little bit confused about it. The apache2 should have rights to open this file. I checked it, the file is exist and the apache2 is have rights for it. I don't understand it.

View 1 Replies View Related

Debian :: Apache2 Web Authentication Against Radius Server - Jessie

Mar 22, 2016

How to configure Web authentication against RADIUS server on Debian Jessie, because the package libapache2-mod-auth-radius is not available on debian mirrors.

I would like to know what happened to this package and what is the newest way to configure radius auth. Some people have told me to compile this package, but is there not an easier way to do that?

View 1 Replies View Related

Server :: Debian - Apache2 - Httpd.conf ServerRoot ?

Feb 19, 2010

Installed Apache2 on a Debian Lenny system. copied my old /var/www/htnl over to the new system.

Now when I open my browser to my PC I get the index.html under /var/www not /var/www/html.

I have this in my httpd.conf:


From what I have read, the DocumentRoot should have pointed to /var/www/html overriding /var/www?

If I use "" it works the way it should.

View 3 Replies View Related

Debian :: Apache2 Timeout - Server Idles On About 80~ish Tasks Constantly

Apr 12, 2010

Im running a Debian 2.6.26-2-amd64 webserver with apache2 only on a Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz that has 2GB of ram in it. I installed htop a few days ago and have been looking on it for a few days now. the server idles on about 80~ish tasks constantly with arond 20 apache tasks/connections to it all the time and the cpu usages of the 2 cores at about 1% each. but asoon as more apache2 connections/task get started and the servers tasks reach 120-140~ Apache2 timesout if you try to go to the webpage i host on the server. when it's back down to around 80~tasks you can reach the webpage once again. why is this ? what's causing this to happen ?

View 3 Replies View Related

General :: Accessing A Windows Box Via VNC Through A Debian Server Via SSH?

Aug 25, 2009

I am using XP at work. I want to get to my home XP box. I have been using VNCTight with port forwarding from my router to get to my home box. I have a Debian server I use just for SSH (no graphics). I would like to open a SSH tunnel to my Debian box, then open a VNC connection that will go through the ssh and then be forwarded to my home XP box. This way everything from my work computer (or wireless laptop) will be secure to my internal network. I know that I can buy software, but that is not as fun and I wont be learning anything that way.

View 3 Replies View Related

Server :: SSL Times Out, Rest Of Site Works Fine. (debian, Apache2)?

Jun 28, 2010

I have no idea why, but my website times out as soon as you try to use the cart.(which invokes SSL)It seems to have happened after I went live from testing, but I checked my configurations, and I can't see anything awry in my apache2 confs.Has anyone run into this before?I don't know how or why this happened or how to even begin fxing it

View 9 Replies View Related

Debian :: Setup A Squeeze Server For A Friend Of Mine Using Exact Apache2 Settings?

May 31, 2010

I just set up a Squeeze server for a friend of mine using my exact apache2 settings. He has been playing around, having a bit of fun learning HTML, but he ran into a problem where one of his images would not display. I at first figured his HTML was incorrect, but after a very long time of trying to figure out the problem, I still do not know what is going on, so I think it must be an apache2 problem?[URL]..

View 14 Replies View Related

General :: Debian: Unable To Mount A Second Drive As A Subdirectory Inside Of Another Partition

Jun 14, 2010

I have the following /etc/fstab:

# /etc/fstab: static file system information.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0


This is, incidentally, the same message that I see while booting. The error message goes away if I comment out the line in fstab starting with /dev/sdc.

View 1 Replies View Related

Debian Configuration :: Accessing Wwwroot Content From Apache Server ?

Mar 15, 2011

I have server with Debian and Apache installed. Webpage content located in /var/www folder. For failserver I have Windows server 2003, which runs Mysql service thats needed for library software. And on this machine theres Inetpub/wwwroot with library webcontent. Sofar its only accessible localy. How can make Apche webserver to take content from this local server machine and show it publicly.

View 14 Replies View Related

Ubuntu Servers :: Take Apache2 Away From Root?

Feb 4, 2010

I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?

View 6 Replies View Related

Ubuntu Servers :: Changing Document Root On Apache2?

Mar 14, 2010

how can I change the document root from /var/www to another folder? I cannot find anything in the apache2.conf or httpd.conf.

View 2 Replies View Related

Ubuntu :: Apache2 Redirect After Changing 'Document Root' From /var/www?

Apr 2, 2010

In /etc/apache2/sites-available/default, I changed my 'Document Root' and 'Directory' from /var/www to /var/www/newdir.have an index.php file in /var/www/newdir I use to authenticate, but when I try to redirect back to index.html in /var/www, i get a 404 error.Anyone have info / know where the link to this discussion is

View 5 Replies View Related

Ubuntu Servers :: Apache2 Change Root Forbidden 403?

Aug 13, 2010

Long story Short, I had to reinstall 9.10 (after a failed 10.04 upgrade) and therefore fresh install of everything.

I installed Apache2 as per [URL] and all works fine.

Changing the root in /etc/apache2/sites-available/default to a folder in my home directory /home/user/subfldr1/www results in a forbidden 403 error.

I've tried changing group owner, given 777 permissions, read and tried all sorts of solutions, but nothing seems to be working.

View 3 Replies View Related

Ubuntu :: Accessing Root With/without Password

Oct 30, 2010

I used

sudo passwd to change root's password. However when I run

sudo su, I see roots prompt without any password request!. If I use

su, then I have to enter root's password (which I set with "sudo passwd").

View 2 Replies View Related

Fedora :: Requires Root Password When Accessing Second Windows Hard Disk?

Aug 28, 2010

I have a second hard disk which has windows and C and D drives partitions. When I boot fedora 13, fedora automatically mounts them as 53 Gb Filessytem and 200 GB Filessytem. But when i try to browse to these filesystem, fedora ask me root password. How I can configure fedora so that it does not ask me root password and this change should be permanent ( surving computer shutdown and restart) ? I want these windows partitions to be reachable by me as the non-root user.Also given /dev/sdb (the windows disk) what is the command line to find out the filesytem path to which various paritions on /dev/sdb are mapped to?

View 2 Replies View Related

Ubuntu Servers :: Url Rewriting Not Working?

Jun 16, 2010

I aleardy set up an url rewriting before, but this time it does not seem to be working.To module is installed and activatedI created an htaccess file in http://localhost/entrepreneur/ contaning the following code:

Options +FollowSymLinks
RewriteEngine On


View 4 Replies View Related

Ubuntu Installation :: Rewriting MBR And Then Reloading GRUB2?

Feb 12, 2010

I have to do but wanted to check first before I started messing around with my MBR.

Originally was running XP and installed WUBI 9.10 to play around with Ubuntu before doing a proper install. Got home from work tonight and removed WUBI leaving edited MBR with WUBI boot loader. I thought I might have to run fixmbr before installing Ubuntu but I assumed Ubuntu would write over WUBI edited MBR. Installed Ubuntu 9.10 and everything is fine but when I select XP from first boot option (Ububtu) it then takes me to another boot option which was from the WUBI install.

Basically to get to XP, I have to select it twice.

It's not a big issue but I know that this will annoy me and one day or another I will try and remove the second unnecessary option to boot into XP.

So if I have this correct I will need to run fixmbr from XP disc and then install Grub 2.0 from Ubuntu disc somehow?

Is this right? Is there another way I can delete the second boot option screen?

View 1 Replies View Related

Ubuntu Servers :: Why Sendmail Would Be Rewriting These Files

Jul 11, 2011

I recently inherited an Ubuntu server where the previous admin had installed sendmail and FCheck IDS.The issue I am encountering is that sendmail appears to be rewriting both /etc/mail/m4/dialup.m4 and /etc/mail/ constantly (at least once per hour).dailup.m4 never seems to change (other then the creation date), while has the line describing who and when it was built changed.So far I have had no luck tracking down why sendmail would be rewriting these files.

View 2 Replies View Related

Debian :: Log Off/log On As Different User Breaks X Apps Under 5.0.1?

Jun 26, 2009

I've just installed Debian 5.0.1 (i386; network install) and I've run into a bizarre issue that I have no idea how to troubleshoot. If I log on as (e.g.) User1, log off, and then try to log on again as User2, X-based (i.e. not terminal) software will fail to load until I reboot. After logging on as User2, all X software (including the Gnome interface) will display its interface for a fraction of a second before vanishing from the screen and the task bar. One time the Gnome interface wouldn't load after log-on: the taskbar and menubar repeatedly flashed on and off the screen as Gnome repeatedly tried and failed to load.

View 1 Replies View Related

Server :: Apache2: Could Not Reliably Determine The Server's Fully Qualified Domain Name

Oct 24, 2010

Using Debian Lenny I'm getting the following message in my mail: /etc/cron.daily/logrotate:


apache2: Could not reliably determine the server's fully qualified domain name, using for ServerName

View 1 Replies View Related

Copyrights 2005-15, All rights reserved