Redirect Domain/user To User.domain ONLY IF Folder 'user' Doesn't Exist

May 7, 2007

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 3 Replies


ADVERTISEMENT

How To Create A Subfolder In My Domain And Assign An Ftp User To That Folder

Jun 30, 2009

I need to create a subfolder under my domain name, and assign an ftp user to that folder. I want the user to only have access to that folder, is it possible? can you guys orient me, because I have no idea where to start, my hosting service provider is telling me I can only have one ftp account per domain, maybe I didn't explain correctly to my hosting provider.

View 1 Replies View Related

Exim: User Unknown (domain Forward)

Dec 3, 2007

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 0 Replies View Related

Limiting Cpu/memory Of A Single User/domain In Whm

Jan 21, 2008

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 5 Replies View Related

CAC/Smartcard User Info Not Accepted, Must Use Domain Usr/pwd Instead For SSL Site

Sep 9, 2009

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 0 Replies View Related

Apache 2.2 DocumentRoot /home/user/public_html Not Exist

Dec 18, 2007

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 7 Replies View Related

How To Remove Hosting Account, Domain And User By SSH In My Cpanel Server?

Jun 17, 2008

Currently I have 1 user hosting crash in my cpanel server.

I fail to restore and terminate or recreate his account in whm.

May I know what is the steps to remove and clean the hosting account in ssh?

I user /script/killacct but fail. So, i need manualy to delete user, hositng account and his mysql database in ssh, mode.

View 9 Replies View Related

Plesk 11.x / Linux :: Setting Up Cron Job For Domain User - No Such File Or Directory

Apr 20, 2014

Can't get it working, I want to set up a cron job for a domain user, but seems that there's a problem to find the php executable. The command is:

Code:
/usr/bin/php/ -f /var/www/vhosts/thedomain.com/httpdocs/test.php

But the report says

-: /usr/bin/php/: No such file or directoryClick to expand...

View 3 Replies View Related

Plesk 12.x / Linux :: (Main) - Domain Is Not Shown In User Panel List

Aug 19, 2014

I have a problem with on domain. The domain is the "main-domain" of the customer but it is not shown in the overview /smb/web/view

Not with the User logged in and not with the admin logged in.

But I can change setting, when I call the detail-page manually: /smb/web/overview/id/d:26

I tried to lock/unlock the domain/account, but nothing worked.

I could not see any mistakes in the database.

Deleting and adding the domain would be a trick, but because of having many domains/subdomains and dns-entries this is not my first choice.

View 2 Replies View Related

FTP. Assign A User To A Folder.

Jul 6, 2007

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 4 Replies View Related

Limiting Ssh User To Specific Folder

Jun 23, 2009

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 3 Replies View Related

Over-riding The User/password Of A Folder

Nov 6, 2008

I have a website where a directory is user/password protect and i want not to be prompted for the user/password when coming from a certian ip (workplace).

how would i code it?

I am guesting to use the "Satisfy directive"?

View 2 Replies View Related

Plesk 12.x / Linux :: Restrict SSH User To One Folder?

May 15, 2015

I need to create a SSH account for an subscription. This account is not allowed to access other domains. How do i do that?

I know how to create an SSH account with remote access.

View 1 Replies View Related

Plesk 12.x / Linux :: Mail Folder Accessible To Each User

Nov 26, 2014

I would like my Plesk users to each have access to the mail folder for their domain. cPanel appears to do this by default by creating a folder named /home/user/mail which contains a subfolder for each domain name. Plesk, however, places all email folders together in the /var/qmail/mailnames folder. I would like to end up with a structure similar to how cPanel does it, but it looks like there are at least a couple of ways to accomplish that and I'm not sure what would be the most safe, reliable way to do it.

One way I can think to do it would be to override the Plesk dovecot config by adding a new config file to /etc/dovecot/conf.d. I think changing the values for mail_home and mail_location as follows would possibly work.

Old values:
mail_home = /var/qmail/mailnames/%Ld/%Ln
mail_location = maildir:/var/qmail/mailnames/%Ld/%Ln/Maildir​

New values:
mail_home = /var/www/vhosts/%Ld/mail/%Ld/%Ln
mail_location = maildir:/var/www/vhosts/%Ld/mail/%Ld/%LnMaildir​

I see a potential issue with this solution; the %Ld for an add-on domain will probably be the add-on domain, and there will not be a folder within /vhosts/ with that name. Perhaps there is another variable for the primary domain that I could use there.

A second way I can think to do it would be to add a symlink in /var/www/vhosts/domain/ named "mail" that points to the actual mail folder for a domain. Again, issues would probably occur here with add-on domains, and I also can't see a way to automate this. I also predict permissions issues with this solution.

I am using Dovecot if that makes a difference.

View 3 Replies View Related

Plesk Automation :: Login As User From Admin / Actual Login As User Are Different

Jan 3, 2014

when I find the subscription from the admin side of PPA, if I select "Login as user" I've noticed that it is different from actually logging in as the user - for example - "add domain alias" is missing when I login as a customer - but not as an admin... I need my customers to add their own aliases and manage them - how do I add that feature to the client login side?

View 9 Replies View Related

Webmin Creating Folder/user With Space And Bandwidth Quota

Jun 14, 2008

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 4 Replies View Related

User Nobody Using Too Much Cpu

Aug 13, 2008

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 7 Replies View Related

No User At TOP - All Are Nobody

Aug 6, 2008

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 10 Replies View Related

User To Use When Ssh

Dec 19, 2007

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 14 Replies View Related

Best Multi User IP KVM

Jul 9, 2009

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 10 Replies View Related

FTP User Privs

Oct 8, 2009

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 0 Replies View Related

User Aliases

Jul 27, 2009

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 1 Replies View Related







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