Addon Domain, Cant Have Password Protected Folders
Mar 22, 2007
I have 2 domains on 1 account. My main website is www.aviationcafe.net and i added on www.modelcuir.com thats what it looks like to the public. But with my host it will be www.modelcuir.aviationcafe.net.
I noticed in the files area that modelcuir is it's own file, i can password protect that but it will stop people getting onto the website completly and i only want to stop them getting into the members area.
I can't create a members area either unless i can add a new folder which i can't i dont think.
A client wants to FTP some files to my server but I don't want him to see/have access to all the other stuff on the server. Is there a way that I can 'corden-off' an area for him to FTP stuff to? A password protected area perhaps?
I was wondering if it would be advisable to use the Password Protected Directory option in cPanels to limit part of my website to no more than 1,000 paying customers (yearly subsciption). Can cPanels handle this? Would accessing .htaccess and .htpassword to authenticate be too slow? Would management become too much? Has anyone attempted this? Are there any good alternatives such as open source programs? I've looked and found a few that are expensive and do way more than what I need.
Code: curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CURLOPT_USERPWD, '[user]:[pass]'); but I can't figure out how to get past the login:
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. Apache/2.0.52 (CentOS) Server at ****** Port 80
I have been trying to get password protected directories working on my Linode server. It works / behaves in a desktop browser somewhat but not like I am used to with hostmonster. Also for some reason my phone (windows phone just loads the page in the protected directory without prompting for a password. So I imagine there is some security thing I am missing that none of the info I have found searching talks about. Here is what I have done. I have created a password file and set the permissions correctly on that and it works on the desktop. However when I close the browser or open a private browsing session I am never prompted for a password again. It just feels insecure. Plus my windows phone just loads the page with no prompt. With hostmonster if I closed the browser window it would ask me for the username and password again. I also tested hostmonster directory passwords on my phone and it prompts for a username/password.
Here is what I have added to the apache2.conf file. The rest is pretty much default. There is no .htaccess file for that directory.
<Directory "/var/www/protected"> AllowOverride All AuthType basic AuthName "Enter Login" AuthUserFile /etc/htpasswd/.htpasswd Require valid-user Order deny,allow Allow from user1 </Directory>
It may be worth noting that I have two virtual sites / domain names running on this server at the moment however the one that is being used for this is the primary domain name.
I normally protect a given directory in the Plesk Contral Panel with a Username / Password. I would like to bypass the username and password for visitors from one IP.
Anyone know a good program to let me put passwords from opening the hard drives via My Computer or especific folders, shortcuts, programs etc?
Lets per say someone got a hold of my Administrator password to have those important confidential files not to be seen a program like this would help. I am also going to set up that the server is only accessed from 2 secure locations just in case.
Lets call the domain1.com and the addons are domain2.com and domain3.com
I transfered the sites from one server to my server and know if I try to goto domain2.com or domain3.com they are not found.
If I goto domain1.com/domain2 (or 3) it works just fine though.
I tried to do the addon domain in cpanel but it is coming up with the following errors.
Bind reloading on server using rndc zone: [domain1.com] The subdomain, domain2.domain1.com has been added.
Error from park wrapper: domain2.com is already configured.
Removed domain2.domain1.com Server at line: 1244. Removed Entry from httpd.conf Bind reloading on server using rndc zone: [domain1.com] The subdomain, domain2.domain1.com has been removed.
domain2.com could not be setup. The subdomain domain2.domain1.com was not setup either.
How can I fix this?
I did try to make domain2 its own account after that, but the script did not work for some reason even though it does if I goto domain1.com/domain2.
I know it must be something simple I am missing, but for the life of me I am drawing a blank.
Also, I moved the site by doing a complete backup in Cpanel and uploaded that to the new server and restored it from the WHM backup screen.
I currently have an established domain, mainsite.com, which is running PHP-Nuke on the directory /home, with a redirect accordingly.
Now, I've created an addon domain, 2ndsite.com, for which I've installed Wordpress at the top-level.
The trouble is, 2ndsite.com defaults to mainsite.com/home - unless I redirect 2ndsite.com to mainsite.com/2ndsite. If I do that, I can then see my WordPress installation.
I'd obviously like to have 2ndsite.com be viewed from that address, as opposed to a subdir under mainsite.com - that is why I got the domain in the first place.
I create a abc.com domain hosting in whm. then I login to abc.com cpanel to AddOn Domain. I try to addon xyz.com into abc.com cpanel. But when i enter to xyz.com website it always show "Great Success !
Apache is working on your cPanel and WHM⢠Server" cPanel and Apache page. The domain is already more then 2 days and ping already propogate to server. May i know is httpd.conf or mod_security problem?
Can a domain be parked on an addon domain in a cPanel server?
At first thought I do not see it as a problem as a ServerAlias directive for the parked inside the addon domain Virtual Host container inside httpd.conf is all is required but cPanel may not allow for all it's wisdom.
Let me know if cPanel would pose a problem or wouldn't allow this scenario.
Currently, 2 domains hosted on a dedicated server with each account having its own Cpanel. I'm going to move/migrate these 2 domains to a shared hosting server.
The shared hosting accont has Cpanel and I've added 2 Add-on domains (the same ones on the dedicated). In total, there are 3 domains under the shared hosting account; The main domain and the 2 other (add-on) domains.
My question is it possible to restore these 2 accounts under a single cpanel account and having all the emails intact? So, in essence, I'm having a single cpanel account to manage the 2 domains to be transferred from the dedicated.
I have an addon domain running on my webhosting along side my primary account. I am mostly using the Thunderbird client to send e-mails. 80% of the time when I send a mail out from "name@addondomain.com" hotmail, gmail, yahoo all see it as spam!
What's ironic is I receive more darn adult e-mails in my free accounts than anything else, and yet it's thinking the occasional mass personal message is SPAM?
So these guys that flood my inbox daily must know something I don't?
Is there something I'm doing incorrectly? Or do I need to change a hosting package setting, should I use different software such as a php mailing list?
I'm trying to understand more the Pro's and Con's for having an Addon Domain vs Separate domain.
Here's my use for it. Site1.com holds all the files, Site2.com holds all the video and images. When it comes time to add a second server (end of this year) I could move Site2.com to a second server and nfs mount it. Thats of the site is separate. PROBLEM: separate site means permission problems, when write code ie.php you can unlink / move files without permission which means setting up special groups.
Addon domain doesn't have the permission problem from what I can see, since the domain gets the group access of the Mainsite. so no extra configuration required. now the problem would be how do I get that addon domain to a second server to offload some of the resources.
Now that I am on a VPS, I have a handful of addon domains (linked to subdomains) that I want to move to individual Cpanel accounts.
Is there any shortcut to doing this (moving DB's, emails, etc.), or do I just need to create the cpanel account, recreate the emails, restore the DBs, etc.?