Apache :: RewriteRule Webroot To File-system Path

Dec 12, 2013

Two projects:

proj: site.loc
proj2.0: newsite.loc

They are located in different places on the file system. And i need to redirect from one project to another internally, so url for site.loc is preserved.

E.g. requesting site.loc/hey/there i need apache to serve files form proj2.0.

First, i know that on the .htaccess level we cannot use RewriteRule to file-system path (for security reasons).

Okay, an Alias is a workaround. Say I add an Alias to virtual host as following:

Code: Alias /newsite /some/path/to/proj2.0

Then if i'll add the rule to proj's .htaccess:

Code: RewriteRule ^hey/there /newsite

This will work.

But, the webroot does not work:

Code: RewriteRule ^$ /newsite

Is it i'm doing something wrong or there is some quirk about the webroot?

View 6 Replies


ADVERTISEMENT

Apache :: How To Select Specific File With Path Using HTAccess

Jun 14, 2014

I want to select a specific file by its path using .htaccess to allow access to it.

View 1 Replies View Related

Apache RewriteRule Convert To Lighttpd

Dec 31, 2007

at Lighttpd, and after trying for 2 hours to convert/rewrite apache's rewriterule into Lighttpd format, I became extremely confused.

Here's what I have in apache's rewriterule:

Code:
RewriteCond %{IS_SUBREQ} ^false [NC]
RewriteCond %{HTTP:Authorization} ^basic [NC]
RewriteCond /root/to/a/folder/%{REMOTE_USER} -f
RewriteRule (.*) http://www.domain.com/your_username_is_blocked.html

View 1 Replies View Related

Path For DNS Zone File In Plesk

Jul 20, 2007

What is the path for DNS zone files located in plesk system?

View 4 Replies View Related

Qmail/spam_log Including Path To File

Apr 21, 2007

/var/log/spam_log
Code:
Sat Apr 21 12:49:09 CEST 2007 - / - drweb x 111 10002 Dr.Web daemon account /var/drweb /sbin/nologin
Sat Apr 21 13:07:36 CEST 2007 - /home/httpd/vhosts/hollanta.nl/httpdocs/html - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 13:19:09 CEST 2007 - / - drweb x 111 10002 Dr.Web daemon account /var/drweb /sbin/nologin
Sat Apr 21 13:19:25 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 13:21:14 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 13:22:23 CEST 2007 - /home/httpd/vhosts/flevo.nl/httpdocs/myred - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 13:23:33 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 13:36:31 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 13:43:42 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 14:19:12 CEST 2007 - / - drweb x 111 10002 Dr.Web daemon account /var/drweb /sbin/nologin
Sat Apr 21 14:37:20 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 14:49:09 CEST 2007 - / - drweb x 111 10002 Dr.Web daemon account /var/drweb /sbin/nologin
Sat Apr 21 15:19:43 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum - apache x 48 48 Apache /var/www /sbin/nologin
Sat Apr 21 15:49:09 CEST 2007 - / - drweb x 111 10002 Dr.Web daemon account /var/drweb /sbin/nologin
Did anybody got this working including the path to the actual file?
I would like:

Code:
Sat Apr 21 15:19:43 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum/spammer.php - apache x 48 48 Apache /var/www /sbin/nologin
Rather than:
Code:
Sat Apr 21 15:19:43 CEST 2007 - /home/httpd/vhosts/brabant.nl/httpdocs/forum - apache x 48 48 Apache /var/www /sbin/nologin
Thanks in advance.

Refering to this HOWTO: [url]

View 1 Replies View Related

Approx Click Path Through Log File (IP Based) Apps

May 21, 2007

application which can show me click paths for different IPs through log files,

Addition but optional requirement
An open source application it will be additional help as I will be able to add my needed features too. I am also very comfartable in PHP compare to any other language (because of all the open classes I know).

View 0 Replies View Related

Apache :: Using UNC Path In Directory

Dec 18, 2012

Earlier I made a setup using UNC path in my Apache configuration. I managed to make this work. Now on another installation using Apache 2.2.22 nothing works like before.

This is how my configuration looks like ....

View 4 Replies View Related

Recommended File System

Aug 2, 2009

I have a dedicated server running Linux CentsOS.

The default setup of my file system is:

/dev/sda1 450GB

tmpfs 2GB

/usr/tmpDSK 485 MB

My Disk size is 500GB

View 6 Replies View Related

File System Check

Jul 4, 2007

i got this message from my provider after asking for a reboot:

Quote:

Your server had an EXT3 FS error scrolling across the screen.

I rebooted and the server mounted clean, but you may end up needing a file system check (FSCK).

I want to do that myself so i can schedule the downtime after midnight, what are the procedures to fix this erros to avoid the need to reboot the server often

am using CENTOS with cpanel & whm

View 2 Replies View Related

Apache :: Log Rotation Setup - Directory Path Has Spaces

Sep 23, 2013

I am trying to set up log rotation on my Apache Server on Windows 2008 using the rotatelogs.exe executable. I believe I am having issues because my directory path has spaces.

From my understanding, a full path is needed for the ErrorLog but not for the CustomLog

ErrorLog "|"C:/Program Files (x86)/Apache Software Foundation/Apache2/bin/rotatelogs.exe" "C:/Program Files (x86)/Apache Software Foundation/Apache2/logs/Error/Error_%Y-%M-%D.log" 86400"

CustomLog "|bin/rotatelogs.exe logs/Access/Access_%Y-%M-%D.log 86400" common

The error that I get is:
C:Program Files (x86)Apache Software FoundationApache2.2bin>httpd.exe -k start
The system cannot find the path specified.

View 4 Replies View Related

Apache :: Every Path Is Forbidden After Enabling Wildcard Vhost

Aug 3, 2014

I've been developing websites using Apache on various Ubuntu laptops over the years. I just set up a new laptop with Apache and it worked fine. If I went to localhost in my browser then it showed the default page. So far, so good.

I then added a file to sites-available to add wildcard virtual hosts. This lets me use convenient urls while developing sites on my laptop. Once I enabled this site, every url that resolved to localhost became 403 Forbidden, including urls that should return 404. Here is an example entry from other_vhosts_access.log...

View 5 Replies View Related

1and1 File Management System

Nov 25, 2005

1and1 file management system

Are you familiar with the file management system of oneandone.

Doing an ftp upload there is already an index file and many folders on the system and the technical manual has no indication on whether to upload into any of the folders or on the system?.
By the way, if you upload into the system interface, your site will not appear online.....

View 2 Replies View Related

Auto Mount File System

Mar 26, 2009

How do i enable auto mount file system in my system? I am using linux ver4

View 2 Replies View Related

Do VPS Or Dedicated Allow Change File System

May 17, 2009

well i am running into the problem of hitting 30k subdir limit. so i need to change to a file system that supports something much bigger.

question is, do hosts allow this ?

View 3 Replies View Related

RedHat's Global File System

Apr 25, 2009

Is anyone here running GFS? The responsibility of managing a small cluster of them is about to fall into my lap, and the only documentation I can find is on Wikipedia, which is troubling. I've got the man pages, but I was hoping for more of a document outlining how it works.

Why would lock_dlm2 or gfs_scand take up close to 100% CPU with minimal traffic on the machine, for example? What do those do? How can I tune it to not do that?

I'm not so much looking for specific answers here about tuning, but am more curious about where I should be looking for documentation. I find it hard to believe that there is none?

View 3 Replies View Related

File System Vulnerablity Scanner

Feb 20, 2007

Are there any vulnerability scanners that search the local file system for vulnerable apps?

I don't need an external scanner. I want to scan all my users home dirs for bad apps - old coppermines, phpbb, etc.

I've not been able to find anything like this.

View 4 Replies View Related

LiteSpeed :: Binary Path Must Be Set Properly In Order Replace Apache

Apr 6, 2008

2008-04-06 08:52:32.597ERRORApache Binary Path must be set properly in order replace Apache, fall back to 'Reload on configuration file change'.
2008-04-06 08:52:32.602WARN[configerver:listener] No listener is available for normal virtual host!
2008-04-06 08:52:32.604ERROR[config:template:centralConfigLog] Listener [Default] does not exist
2008-04-06 08:52:32.605ERROR[config:templateHP_SuEXEC] Listener [Default] does not exist
2008-04-06 08:52:32.605ERROR[config:template:EasyRailsWithSuEXEC] Listener [Default] does not exist
2008-04-06 08:52:32.617WARNStandard Edition only support up to 5 Apache vhosts.

I did everything on the litespeed setup I was soppose to found at their wiki site. But still I recieve these errors, LiteSpeed works on my server because httpd is disabled and LiteSpeed is responding to request now.

View 8 Replies View Related

Apache :: HTTPD Doesn't Start With Invalid Path Error

Jul 31, 2013

httpd server configuring.I share my files only from local disks but some of my resources are located on truecrypt secure volume.When I want to start my server now I have to mount my all drives first to have all path active. Otherwise httpd doesn't start with 'invalid path' error.My question is, how to force httpd starting without path or drive exists checking?

Platform Windows7 x64
Apache version 2.4.3
Package Xampp

View 8 Replies View Related

Apache :: Server Doesn't Start If Path Contains Korean Characters

Jul 10, 2014

I'm testing on Windows 7 x64 SP1.

I have downloaded httpd-2.4.9-win32.zip from VC10 Win32 link which includes IPv6 Crypto apr-1.5.0 apr-util-1.5.3 apr-iconv-1.2.1 openssl-1.0.1h zlib-1.2.8 pcre-8.34 libxml2-2.9.1 lua-5.1.5 expat-2.1.0.

I unzipped and installed on my system. Configured SSL. I installed in directory C:Apache24

View 10 Replies View Related

What File System For A Massive Disk Array

Jun 2, 2009

I am trying to figure out what file system to use for my server. It has 24 hard drives, 2 run the OS in RAID 1, and the other 22 are in RAID 10. When I was installing the OS (Ubuntu 8), I kept on getting problems when I tried to partition and format the second drive (the one with the 22 disks in RAID 10) and it keeps failing on me. I then changed the file system type from ext3 to XFS and it worked fine. I also gave it another try and did not partition/format the second drive and decided to do it manually once the OS was installed. When I did it it told me that the file system was too large for ext3. So my guess is that ext3 has a limit on the size of the file system it is being installed on.

Anyway, so I am wondering, is there any other file system that will get me the best performance, mainly I/O performance, that I can install? I would like to stick with Ubuntu OS. This server will mainly serve large files for download over HTTP.

View 14 Replies View Related

Issue On Reboot, File System Won't Mount

Jun 24, 2009

seeing htis issue:
[url]

thing is there is no SDC volume. there's SDA, SDA1 and SDA2 reflecting the primary drive in the system. if i put in the root password I can see all the data, everything looks fine.

how would i go about fixing this? system just reboots over and over.

View 6 Replies View Related

How To Change Permissions Of A Read Only File System

Jun 21, 2008

I have a dedicated server and till few days back i was able to edit my files fine but this morning when i am trying to edit any file, it gives me back this error:

[user@domainname theme]$ chmod 777 header.php
chmod: changing permissions of `header.php': Read-only file system
[user@domainname theme]$

[root@domainname theme]$ chmod 777 directoryy
chmod: changing permissions of `directoryy': Read-only file system
[root@domainname theme]$

I tried both as normal user and root and same results. Do you think the hosting guys changed the permissions of the file system or something?

View 4 Replies View Related

CentOS & Automated File System Check

Mar 14, 2008

I have a centos server & whenever I reboot it, it goes into File System check and takes about 1 hr to turn online.

The irony is, I reboot the server only when the load goes high (esp when traffic is high).. And the server is down for long times when traffic is high.

The server config is pretty good, but it shows these problems once in 15-20 days.

View 3 Replies View Related

Chmod All Occurances Of A File System Wide

Apr 13, 2007

How do I sweep my entire server and chmod a particular filename located in the cgi-bin to either 0, 755, etc?

For example, to disable a particular perl script running on my system on over 100 accounts in the /cgi-bin/file.cgi I want to chmod the file on every account that it comes up on that /cgi-bin/file.cgi needs to be chmod'd to 0.

Anyone know how to do this thru ssh or another method?

View 3 Replies View Related

Best Way Of Mouting File System Remotely? NFS/SSHFS

Dec 29, 2007

I've been debating this in my head in that we have a number of servers that need to mount a remote server (for backups actually) and debating about the best way of doing it. Traditionally I would use NFS but this is going to have to run over the public internet and NFS is insecure at the best of times.

Now I've got root on all the servers and I was thinking of using sshfs via fuse but just wondered if anyone had any input of the stability of it or any other way.

R1Soft wouldn't work in this method as the backups are created by the user

View 3 Replies View Related

Htaccess RewriteRule

Mar 17, 2007

I am setting a new site, right now using:

Code:
RewriteRule ^([0-9]+)-(.*)$ /dir1/file.php?x=$1&y=$2 [QSA,L]
So the address [url]is in access as [url]

Is it possible to somehow remove "-" in rewrite code, as the first variable is always 4 digits?

View 4 Replies View Related

RewriteRule: Remove Www From All Url

Apr 19, 2007

on my server I'm trying to remove 'www' from all subdomain urls.

For example:
[url]-> should be -> [url]
[url]-> [url]...

what rewrite rules to use?

I suppose I've to put this rule in httpd.conf and apply it at Server level.

I'm using this

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.([^.]+).example.com
RewriteRule (.*) [url]

where %1 is one subdomain.
The problem is I want this to work on ALL Subdomains.

What rewrite rule should I use?

View 8 Replies View Related

WHM Not Listing Account, DNS Etc, Missing Files, File System

Jul 26, 2009

I recently had an issue where my box wasnt listing accounts (on logging into WHM for the first time it would, thereafter browsing different functions in WHM it would fail to list any accounts), would not list any zone items when editing DNS zones and in general was acting very strange.

I think the tech support chap narrowed it down to zero free inodes on the filesystem (i was even getting errors when editing files with 'vi'). This was increased for the VPS and all issues seemed to be resolved...

However named and httpd were not starting after reboots. Again on looking closely named and httpd were missing from /etc/init.d (on CentOS 5.3)! This is very strange and i certainly didnt modify those nor delete such critical files.

For a second opinion, is there any cPanel script that can be ran to fix the issues, i am concerned other things have been affected but havent manifested themselves yet (other files deleted etc). Does cPanel update script create the init.d files or is this done by the CentOS operating systems itself? Are these files modified during a cPanel update script?

These init.d files for named and httpd have been readded (copied across from another box) and it seems to be ok again, but ideas on howto proceed much appreciated, as i mentioned i dont want any nasty supprises!

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved