Redirect Domain/user To User.domain ONLY IF Folder 'user' Doesn't Exist
I thought I knew enough about my .htaccess stuff to do this, but I can't seem to work it out. What I want to do is if a user visits domain.com/folder, we check to see if the folder exists. If so, show as normal (IE domain.com/support)
If a user visits domain.com/dynamicusername (dynamicusername is not a physical folder), redirect to dynamicusername.domain.com
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Exim: User Unknown (domain Forward)
One of my clients has 2 accounts: - foo.com, with a mail account info@foo.com. - bar.com, with domain forwarding to foo.com. Sending an email message to info@foo.com works. Sending an email message to info@bar.com doesn't work. When using the ZoneEdit SMTP test utility I get the following error message: Code: > RCPT TO:<info@bar.com> < 550 5.1.1 User unknown: info@bar.com I checked "/etc/vdomainaliases/bar.com" and "/etc/localdomains", they are configured properly. Any suggestions?
View Replies!
View Related
Limiting Cpu/memory Of A Single User/domain In Whm
i've been researching this but can't seem to find a decent solution. basically trying to limit the cpu usage of a single domain, or limit accesses per hour if that's possible? i tried adding an entry in /etc/security/limits.conf which restricts numproc to 2 and then down to 1, but it doens't seem to make any impact on the load. load of the server drops from about 1.5-2 down to 0.02 when this single site is suspended, and i can't have it run wild. ideally would like a message that says something along the lines of server is too busy... trying again in 5 seconds or something along those lines?
View Replies!
View Related
Apache 2.2 DocumentRoot /home/user/public_html Not Exist
I am getting this error and I just installed apache 2.2 and added a user using useradd user. When i added into the virtual which is: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /home/user/public_html ServerName user.com </VirtualHost> It does not find the public_html folder I added. Is this a permissions problem? or something else?
View Replies!
View Related
CAC/Smartcard User Info Not Accepted, Must Use Domain Usr/pwd Instead For SSL Site
Having an issue with random individuals trying to access an intranet site with a security certificate. Most users are able to simply select their Smartcard/CAC certificate, enter the pin number and then are granted access to the site's pages. However, random individuals enter their pin and then are immediately re-prompted by the IE alert dialogue to enter their domain username and password. If they don't enter their network domain username and MS password, then they receive a 401.1 Unauthorized. I am confused as to why these certain users (who are selecting the same certificates as the successful ones) are being prompted for their domain name/pwd. Furthermore, they're able to access other sites which require a CAC to get past the security certificate. Possible that a user token is unable to be established via a CAC for the particular site, but not sure why. Since these users are getting a 401.1, then somehow their identity associated with their CAC credentials is not validating. In IIS: Anonymous users are not allowed (unchecked). 128-bit encryption is required with SSL. Integrated Windows Authentication is checked. Accepting client certificates In the site's web.config file all users are allowed and only anonymous are denied. Developed in asp.net 3.5 We have tried to reproduce the problem in testing and development environments, but have fortunately/unfortunately been unable to duplicate this issue. This furthermore eludes to an issue that might be isolated to the production server, users access to it, and/or the certificate that is applied to that SSL website on that server. The exact same setup is present on the development box without any issues at all, indicating to me that the problem resides on the production server's ability to properly receive/handle CAC information from those individuals or that something funky is going on with the way the security certificate is relating to the client's CAC x.509 certificate. A little more information that may be of use: the browser prompt that initially asks for the CAC has nothing to do with the code of the site, but rather is enabled by applying the security certificate to a site in IIS; thus indicating to me that there is something written into the certificate that looks for client certificates tied to the ActivClient agent via the browser? The violating users' cards work on all other applications and even on SSL sites on other servers that bring up a CAC prompt. I believe we have confirmed that the certificates associated with their cards and their IE browsers are valid through 2015 (or longer in some cases), and are the same in nature (x509 certificate from the card)... and issuer is being consistently selected as DOD Email CA-15 (though the regular DOD CA-15 works as well). Again, maybe something with the fact that it's isolated to one production server, something with the SSL cert. on that url or user access? Then again, I probably have no idea what i'm talking about, just throwing a bone here to see if anyone has had the same issue or has any ideas.
View Replies!
View Related
FTP. Assign A User To A Folder.
finally after spending all night getting proftpd working correctly on a new test box. im struggerling with ftp folder permissions though. could somone tell me or show me how to allocate a user to a certain folder.... for example ive added the username apple to ftp and when user apple logs in I want him to see the apple folder as his home folder and access to everything in apple. i thought it was... useradd -h /home/userarea/apple apple but it doesnt seem to work.
View Replies!
View Related
Limiting Ssh User To Specific Folder
I may have this wrong, but I think it's possible. I have a friend who wants to run a process on one of my servers, now I don't particularly 'care' about this server, it's just used for a couple of unimportant things so I'm okay with him running it, but I don't want the hassle of sorting out things if he decides to delete everything, so I'm hoping it's possible to limit his directory. For example, I have the folder "people" in the top most directory, inside that I have "arthur", I want to limit the ssh user "arthur" to the folder "arthur", I don't want him to be able to cd ../../ and delete stuff, is this possible?
View Replies!
View Related
Webmin Creating Folder/user With Space And Bandwidth Quota
how can i create directories in my (public_html / htdocs folder) that have disk space and traffic quota? i activated the disk quota to the native linux file system and i tried to create a user but i could not put this user in any folder in the public_html (i dont know how to do this) also there is no option to create bandwidth quota.. one more detail is that the folders need to be protected with login and password because people may try to enter this folders (e.g. www.mydomain.com/protectedfolder) all this using webmin or another free good script.
View Replies!
View Related
User Aliases
Is it possible to create user aliases on linux? I have webmin and virtualmin running on my server, but it's set up to create usernames in the form name@domain.tld. Is it possible to create an alias, say myname that points to myname@mydomain.tld, so that I am able to have certain users to login via SSH using a shorter name?
View Replies!
View Related
User Nobody Using Too Much Cpu
use "nobody" is using 2much cpu on my server ... can someone explain me how is this possible ? [url] I already have checked "Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)" In tweak settings.
View Replies!
View Related
No User At TOP - All Are Nobody
when I run top command I should see who user are running and I see only my root and no body 2840 mysql 15 0 181m 78m 4568 S 22 1.0 1102:41 mysqld 4078 nobody 16 0 37128 17m 3300 S 5 0.2 0:00.99 httpd 4032 nobody 15 0 37600 18m 3364 S 5 0.2 0:00.35 httpd 3541 nobody 17 0 38200 18m 3300 S 4 0.2 0:00.73 httpd 3598 nobody 16 0 41744 21m 3288 S 4 0.3 0:01.26 httpd 3738 nobody 15 0 39820 19m 3276 S 3 0.2 0:00.63 httpd 4052 nobody 15 0 38436 18m 3376 S 2 0.2 0:01.63 httpd 3428 nobody 15 0 37040 17m 3388 S 2 0.2 0:00.60 httpd 3806 nobody 17 0 38404 18m 3316 S 2 0.2 0:00.70 httpd 4036 nobody 15 0 38408 18m 3300 S 1 0.2 0:00.52 httpd 4072 nobody 15 0 44216 24m 3424 S 1 0.3 0:01.03 httpd 3402 nobody 15 0 38296 18m 3320 S 0 0.2 0:01.05 httpd 3437 nobody 15 0 41632 22m 3616 S 0 0.3 0:01.25 httpd 3505 nobody 15 0 37412 17m 3428 S 0 0.2 0:00.89 httpd 3523 nobody 15 0 41432 21m 3252 S 0 0.3 0:00.30 httpd 3542 nobody 15 0 42720 22m 3388 S 0 0.3 0:00.88 httpd 3581 nobody 15 0 37464 17m 3272 S 0 0.2 0:00.40 httpd 3602 nobody 15 0 38472 18m 3420 S 0 0.2 0:00.31 httpd 3643 nobody 15 0 37788 18m 3308 S 0 0.2 0:00.50 httpd 3644 nobody 15 0 35120 15m 3000 S 0 0.2 0:00.03 httpd 3645 nobody 15 0 41816 21m 3276 S 0 0.3 0:00.52 httpd 3647 nobody 15 0 42908 23m 3408 S 0 0.3 0:01.20 httpd 3723 nobody 15 0 36260 16m 3408 S 0 0.2 0:00.85 httpd 3805 nobody 15 0 37512 17m 3272 S 0 0.2 0:00.44 httpd 4046 nobody 15 0 39596 19m 3284 S 0 0.2 0:01.41 httpd 4567 root 15 0 2452 1224 796 R 0 0.0 0:01.04 top 7826 root 15 0 0 0 0 S 0 0.0 0:06.21 pdflush 10001 root 15 0 12920 8528 1292 S 0 0.1 0:18.65 lfd 1 root 16 0 2060 636 544 S 0 0.0 0:12.09 init 2 root RT 0 0 0 0 S 0 0.0 0:01.15 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.14 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/0 5 root RT 0 0 0 0 S 0 0.0 0:00.63 migration/1 6 root 34 19 0 0 0 S 0 0.0 0:00.09 ksoftirqd/1 7 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/1 8 root RT 0 0 0 0 S 0 0.0 0:01.29 migration/2 9 root 34 19 0 0 0 S 0 0.0 0:00.18 ksoftirqd/2 ---------------------- and I can't know who are runing in my server
View Replies!
View Related
CentOS User
I have CentOS 5.1, and I can create a new user to be added to the wheel, however it will not let me login directly through SSH. The only way I can login as that user is to su - from the root account. I have checked, and the user is added to the wheel, and it does recognize the password when I su -. Does anyone know what could be causing this? Is there some mundane step I missed?
View Replies!
View Related
Tracking Down A User
A user is running something that eats up all the server memory very quickly. Looking at the access logs this is all I get: XX.XX.XX.XX - - [22/Mar/2007:12:58:06 -0400] "GET /index2.php?option=com_rss&feed=RSS1.0&no_html=1 HTTP/1.1" 403 - XX.XX.XX.XX- - [22/Mar/2007:12:58:47 -0400] "GET /index2.php?option=com_rss&feed=RSS1.0&no_html=1 HTTP/1.1" 403 - XX.XX.XX.XX - - [22/Mar/2007:12:58:58 -0400] "GET /index2.php?option=com_rss&feed=RSS1.0&no_html=1 HTTP/1.1" 403 - Now there are quite a few index2.php's located on my server so I can not figure out who is running this. When I run ps ax -o pid,user,rss,command|grep httpd I get about 20-30 of these: 13808 nobody 17360 /usr/local/apache/bin/httpd -DSSL how I can figure out where this script is being run from?
View Replies!
View Related
Abusing User
There is user which is abusing my board by regsitering multiple accounts from different IPs and by using email addresses. He has registered over 200 accounts,i am banning him once he make bad posts,but he still has tens of accounts regsitered. Thats not bot,thats human beeing. The question is whether if there is a tool to identify users using the same computer to regsiter multiple accounts ? Probably by cookie or pc name or similar.
View Replies!
View Related
Which User Group
I'm making an account for my friend, and I just want him to have access to /var/www/hishomedirectory/ I want him to be able to do anything in that directory (rename files, delete, copy, move, upload, etc..), but not able to use apt-get or play with settings. Not a superuser either.
View Replies!
View Related
User To Use When Ssh
which user should i use when you doing work on the server? I've been login as root when i need to do work on the server (i know this is really bad.) Should i create another user to ssh in and when i need to do crital stuff i will use su ? What groupid should i set this user to?
View Replies!
View Related
Retrieving My User Name!
how to find my user name for my ftp via SSH (not whm)! It that some one who was doing some work on my server decided that it would be funny if they changed my pass and username. I retrieved the pass but not the username.
View Replies!
View Related
Redirect Www.domain.com To Domain.com
Can anyone help me in redirecting my site www.domain.com to domain.com since SSL is for domain.com Here is my htaccess Options -Indexes DirectoryIndex home.php index.php index.html index.htm Could you please add me the correct code to redirect www.domain.com to domain.com? Also, do i need to restart Apache for taking effect?
View Replies!
View Related
Dreamhost Backups User!
Check this out... I was just diggin around in my Dreamhost panel and discovered something new that I've not even seen announced anywhere... Dreamhost is giving a BACKUPS user on each account, totally separately from the web user. You are allowed... well, I'll just copy / paste straight from the panel: At DreamHost, you may only keep website-related content on your regular users. You do, however, get one user per account where anything legal may be stored; your Backups User. This user cannot have any websites pointed to it, nor may you share files via it... it is only to be used as an off-site backup for your personal files. As such, we keep no backups of files on this account. These are already supposed to be your backups... not your only copy! (Of course, you should always keep your own copies of all data stored with us.. we make no guarantees!) Every full DreamHost Hosting plan includes 50GB of backups space! (Additional usage will be charged at the rate of 10 cents / GB a month: the best backup deal on the net!) Pretty interesting... they didn't HAVE to do that, it's just another one of those things that they give in order to be even MORE awesome, evidently.
View Replies!
View Related
Mapping User Paths
I'm not even sure I'm asking this in the right place, but here we go. We are working on creating some load tests for our system and we need to figure out how a "normal" user navigates our system. Is there software out there that will show use how a user navigates our system via reading the apache logs? Will awstats do the trick?
View Replies!
View Related
Best Multi User IP KVM
I am currently looking for a new IP KVM. Right now I use a mix of HP and Raritan KVMs and I'm honestly not super happy with either of them. The main feature I'm looking for is the ability to setup multiple users and only allow them to access certain ports/devices on the KVM. What would be the best IP KVM to look at for this?
View Replies!
View Related
Windows 2008 User
I am trying to create a new windows 2008 administrator user. Which is simple and i have done it but it seems it doesnt have the same permission as the standard administrator user. how I can setup a new user with the same permission as the normal administrator user?
View Replies!
View Related
Manage Sub User Account
I am looking for access to a specific environment and I thought i'd put it out there and ask y'alls if you have seen a good way to achieve or a reseller that would let you... a. Use whmcs to auto create accounts (yes, ino, very likely in most cases) b. Manage all the accounts from a user that has access to all the webroots. Im looking for a setup that lets me autocreate an account so a user has access but lets me use dreamweaver to manage all the sites in one session. I've found either or, but not together. I thought about buying an instance of cpanel or lxadmin but im tentative to move away from a guaranteed uptime and backup solution that comes with a reseller environment.
View Replies!
View Related
FTP User Privs
I basically have a script that uses passthru when people login with FTP so it can connect users from multiple interfaces. Thing is, it uses the default php.ini file so, to get this script to work I have to enable passthru in the default php.ini file, affecting all users with an account. I am currently running SuExec and can change the php.ini file each user uses from httpd.conf. But as far as I am aware the FTP user isn't in httpd.conf. What user does FTP run under and how can I use a custom php.ini file just for the FTP daemon. Also, as a side note, what are the effects of passthru and can it be used for malicious intent if wanted?
View Replies!
View Related
The Vps Is Locked By Another User
when I tried to reboot my VPS via Hypervm Enterprise I got this error: =========== Alert: The vps myvps.vm is locked by another user. This would also be because you had interrupted an earlier activity that would take long time to complete. HyperVM has waited 15 seconds for the other process to finish. Please try after sometime. =========== and memory usage going crazy it's going from 400MB "natural usage level" to 1024MB then the vps and all sites going down.
View Replies!
View Related
Clone A User Account
I have a need to create about 50 clones of a user account. Obviously, they would each have thier own url and username. I have WHM and root access to my server. The reason I want to clone is because it will save massive time versus doing each one individually because the sites are exactly the same. My client is basically just using a parking page script.
View Replies!
View Related
Httpd Running Under User Nobody
I have read that running httpd under user nobody is not safe at all so I installed mod_suhosin and suphp but still the httpd is running under user nobody. Could anyone suggest me how to check if they are installed good and are they working? I don't know why is this happening
View Replies!
View Related
Knowledgable Litespeed User
I have a few questions for people using the free version of litespeed.Do you notice improvement from apache? Is it possible to convert my existing apache server to use litespeed with minimal downtime? If so how much would it cost^ Will the load decrease on my server? I run a VDS with 512mb ram and 1024 burst? Will that be fine? Also I would like to talk to someone on AIM MSN AIM: dylanxmowsxfaces MSN: dylan@kraklak.com
View Replies!
View Related
FTP With User Upload Only
how i can make an FTP account for my clients to upload files to but when they upload a file they dont see it after. I want to just make 1 ftp user / pass to give to my clients but after uploading they dont see the file or any other files in the folder. Maybe a way for the file to auto move to another folder after uploading?
View Replies!
View Related
Enabling Shell_exec() For Some User
to run one PHP script from crontab as root.. But my basic PHP has shell_exec disabled in php.ini and when trying to run script that use shell_exec even from root I get error that function is disabled. Do you have any suggestion how can I overcome this and have ability to use this function when executing php script from console?
View Replies!
View Related
Exim/Cpanel No Such User Here
I'm having an issue with email generated from a website contact form. The email is being sent from the website via php. The issue is that the email address that it is being sent to is a domain/website that is also on cpanel. It is trying to deliver it to a local account, but the email is acutally on a third party system outside of cpanel. Does anyone know anyway for exim to not try and deliver locally?
View Replies!
View Related
Http+limit User
How can i set user limit to access web site , Ex:- if my site access 10000 users at a time and then if any more user access that site it will receive error or custom error page. and how to and where i can set this values...........
View Replies!
View Related
User Can't Send Mail
an user reports he can't send email. (cpanel/exim/csf) 451 - The server has reached its limit for processing requests from your host I checked his IP address and there are no connections coming from his IP address to port 25, I switched the connection on the client to port 26 and it worked. But there are a lot of users on his IP address so changing the port on every computer is not reasonable.
View Replies!
View Related
Cpanel Master User
Logging in to cpanel using root password warned you that you had logged in using root privs and you got a nice drop down where you could jump to any account's cpanel. After changing my root password, the first domain set up on that server gets the nice drop down, and indeed full rights, despite using it's normal password. I also don't see the warning message about using root privs. So, somehow, the domain's account has gained ROOT cpanel privs. Where is this set?
View Replies!
View Related
Root User Not Being Logged
Our web developer is logging in as root through SSH but log files do not show a record. We are getting the normal email notification but last & last -a does not show that they have logged in. Anyone seen this before?
View Replies!
View Related
Serverbeach, User Privileges
I have a server from ServerBeach Linux Powerline 2600. CentOS5. It even has webmin on it. But this is what I'm trying to do, trying to add a user so the user can use apache/php/mysql/cron and cannot look into other directories like /etc SB is taking sometime, so I thought to post here as well. I know it's a linux admin thing, but I'd like to get some quick help as well..
View Replies!
View Related
Limiting User Activity
I am interested in setup user activity limits to avoid peaks on the server load, I have readen a lot about PAM and limits.conf but still have no idea on how set this limits. Most of the examples are similar to this page http://www.seifried.org/lasg/users/ but they are still confusing to me >> I would like to setup rules like this: Customers may not use more than 2% CPU daily, 3% memory daily, run more than 10 simultaneous processes per user, allow any process to run for longer than 30 CPU seconds, run any process that consumes more than 20% of available CPU at any time, or run any process that consumes more than 16 MB of memory.
View Replies!
View Related
User Can See /etc/passwd. How To Stop This
We have CentOS and WHM 11 on the server. Also we have PHP 4.4.4 and open base dir enabled on the server . We have a shared server with many website configured on it. Now The user uses the following PHP code and can see the /etc/passwd file ============================================= <? echo ini_get("safe_mode"); echo ini_get("open_basedir"); include("/etc/passwd"); ini_restore("safe_mode"); ini_restore("open_basedir"); echo ini_get("safe_mode"); echo ini_get("open_basedir"); include("/etc/passwd"); ?> ============================================ Now how to stop this. This is a security hole. how to stop this.
View Replies!
View Related
End User Offerings
I know it will cost more, but does anyone know of some VPS providers that offer end user support? I`m looking for a managed service, with end-user options thrown in for free or as a paid addon. Like I said, I appreciate it will cost more for such a service. I`ve searched through the "offers forums" and could only come up with shared reseller plans. I would prefer a provider with nodes based in the northern States such the great lakes area, IL, or the north east.
View Replies!
View Related
Search User Files
I have Cpanel on my VPS, many of my accounts are over quote but they not have havey site on it and also not using much resources. I think beacuse of last migration some of account have files ownership in other directories of server. Is there any command in linux which tell me all files list of specific account name. But out of his directory.
View Replies!
View Related
|