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?
/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.
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).
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.
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
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
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...
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.....
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?
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.
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
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
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.
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.
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?
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.
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?
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
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!