Creating Same Subdomain Name/directory On Add-on
Aug 20, 2007
I have a problem here.
I have 2 domain on 1 account, which one is called domainA.com & domainB.com is an add-on.
I created 2 same subdomain name which are assigned to same subfolder!
subdomain.domainA.com (/public_html/subdomain)
subdomain.domainB.com (/public_html/subdomain)
The question is: How do i change domainB subdomain folder to something else? (eg. /public_html/domainb/subdomain)
View 1 Replies
ADVERTISEMENT
Jul 29, 2009
I have some URLs like:
[url]
[url]
Now,I would like to create an alias/sub-domain for this URL. For example:
[url]-> [url]
[url]-> [url]
how this can be done? Do I have to create a subdomain for this? But when I try to create a subdomain throught the OLM control panel, it asks me for the real path i.e. '/var/www/html/subdomain_folder' which I don't have in this case. Secondly, can this be done without modifying any information in the DNS? Changing DNS costs be $5/change from OLM
View 2 Replies
View Related
Jun 19, 2007
Here is a summary:
One) allow users to register at the homepage. Then give them automatically a URL such as username mydomain com
Two) A catch-all subdomain so that if someone browses to xxxx mydomain d0t com and xxxx is not registered by any user; then it is redirected to www mydomain com
Three) All registered subusers details to be maintained in Mysql database (this seems to be easy)
Four) If possible, impose individual quota on each registered user (not really critical).
Which hosting plan should I go with for this? VPS? Shared hosting? Something else?
any particular company? what's the best approach for automatically creating the subdomain for each user upon registering at the site?
View 1 Replies
View Related
Jun 20, 2014
I am planning to create site with sub domains like smth.domain.pl and there will be around 10 sub domains now my question is how to handle sub domain creation trough plesk or by htaccess ?
View 1 Replies
View Related
Apr 24, 2014
I am trying to write a script PHP creating a subdomain on a server when executed (as well as doing other stuff, but that part work). But, when I send my request to the server, the script, while it does create the subdomain, doesn't display anything upon execution (I have put a few echo in the script to check the advancement, and nothing appears).
The error message : Echec du chargement de la page Aucune donnée reçue.
Here is my code :
/**
* Returns DOM object representing request for creation of new subdomain named after the parameter
* @return DOMDocument
*/
function createSubdomain($nom)
{
$xmldoc = new DomDocument('1.0', 'UTF-8');
$xmldoc->formatOutput = true;
$packet = $xmldoc->createElement('packet');
[Code] ....
The function curlInit and sendRequest are those used in the examples provided on this site, but I put them here just in case :
/**
* Prepares CURL to perform Plesk API request
* @return resource
*/
function curlInit($host, $login, $password)
[Code] ....
Why it doesn't send anything back ? When I modify the property line in the request, the script displays something, but it also fails at creating the subdomain (because the parameters are incorrect).
View 3 Replies
View Related
Jul 8, 2014
In the attached image, the following error details to create a new subdomain
View 3 Replies
View Related
Jan 22, 2007
I currently own a few web hosting company's.
Where i seem to be having trouble is that i have allways used Reseller accounts to run my business. But recently this month i have purchased My own Servers.
I currently Own 9 Servers in total. So when it comes to Actual Server Managment im running into a brick wall lol
One of my business's invlolves Free web hosting.
And and I have been using one server for the free web hosting clients.
The problem is that sigle server is Maxed out I cannot add any more accounts to it withought jeperdising its stability.
This service Not only inlcudes Free domain hosting but sub domain hosting as well.
So now that you know a little background on what im doing heres the question
We use Client Exec as our billing and Auto Account Creation and we know its possible to Add multiple server to Client Exec and we can tell it to creat new accounts on anouther server But what hapends when someone wants a subdomain?
Its my understanding that subdomains can only reside on the server that the actual domain is being hosted. Is this right ? or is there a way to creat subdomains of a .com on anouther server where is not located...
Also i was wondering if it was possible to join servers together in one whm?
So under Ip Adresses we could just specify a new Ip & server would this work ?
I really need help fast since i get an average of 90 sighnups a day. and im sorry if theres a simple solution to this.. Im just new to actually owning my own hardware instead of using someone elses.
to me it just doesnt make any sence and i know it needs to be possible somehow ..
View 2 Replies
View Related
May 1, 2013
recently i created a domain subscription with 3 alias domains. Thanafter i created a sub domain to a folder in the main domain. At first all went fine but after deleting the alias domains subdomains ans domain supscrption to register all the 4 domains each seperately a problem accured and i cant add any subdomain to none of the 4 domains. registering the domains themselves as individual domain works for each one perfect. But as soon as i try to add a subdomain on any of that 4 domains i get an error that the dns data could not be updated. As it looks like there is still some codes in the plesk database that links to 4 domains in any kind together and prevents me to creste a subdomain.
How can i manually remove all the domains subdomains and alias domain garbage from the plesk database. I use windows version of plesk panel 11.0.9 on windows 2008 server datacenter edition. I have good skils in IT but im not familiar with mysql and plesk. how to remove the records from plesk Mysql database. Command line commands internal commands locations that have to be altered and all other needed steps.
View 1 Replies
View Related
Aug 29, 2013
I have a number of WordPress, Drupal, Wiki sites running under RHEL6.
Apache version:httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: Aug 2 2013 08:02:18
We are subject to internal scans by Appscan and Tenable. It is a security requirement so I cannot just block them.
The scanners, of course, attempt to recurse the directory structure and find vulnerable files such as boot.ini, winnt.com and such.
This drives the php content management systems nuts.
Request comes in and is handled by php.
PHP checks the cache for that name and does not find it.
PHP generates a MySQL query and sends it.
MySQL tries and fails to satisfy the query.
MySQL returns result to php.
PHP Writes a cached of the result and presents it to the web.
In other words, a whole lot of processor/memory.
The security scans typically look like......
[Thu Aug 29 00:35:15 2013] [error] [client XXX.XXX.XXX.XXX] Invalid URI in request GET /../../../../../../../../../../../../etc/passwd HTTP/1.1
[Thu Aug 29 00:35:15 2013] [error] [client XXX.XXX.XXX.XXX] Invalid URI in request GET ../../../../../../../../../../../../etc/passwd HTTP/1.1
[Thu Aug 29 00:35:15 2013] [error] [client XXX.XXX.XXX.XXX] Invalid URI in request GET //../../../../../../../../../../../../etc/passwd HTTP/1.1
[Thu Aug 29 00:32:26 2013] [error] [client XXX.XXX.XXX.XXX] Invalid URI in request GET ....................windowswin.ini HTTP/1.1
[Thu Aug 29 00:32:26 2013] [error] [client XXX.XXX.XXX.XXX] Invalid URI in request GET ....................winntwin.ini HTTP/1.1
I have been able to improve performance, speed and security by mod_rewrite
RewriteRule .*.(dll|ini|exe|com)$ - [R=404,NC]
Now (Finally) the question.
I have not been able to create a rule for the directory recursion.
I want to R=404 any that has a "../.." or "...." or ...." but I can not get it to recognize the string correctly.
I believe that this would improve speed and security.
View 2 Replies
View Related
Mar 21, 2015
I am using Web admin edition .I need to create two subdomains namely sub1.example.com and sub2.example.com with different IP address. So i need to create two webspaces since a webspace cannot have two domians pointing to two different IP. So now to I can create two webspaces set to different IP. But to create sub1.example.com in one webspace and sub2.example.com in another webspace , i need main domain example.com in both the workspace. But if try to create example.com in second webspace it already exists.Because it exists in another webspace. Actually i dont want to create example.com in both webspace. i need to its subdomain in different webspace.
So one solution is to create example.com and sub1.example.com in one webspace and create another webspace using Adding new webspace and specifying domain name as sub2.example.com. But i don't know does the second subdomain will work properly without creating main domain.
View 1 Replies
View Related
Sep 22, 2012
I have a problem with my plesk v11, when i create a new subdomain and upload my asp.net application to that and make a request to view my web page it get Server Error 401 :
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.
But my main web site have not any problem and works fine, my changes that didn't work :
1) change in web.config file :
<authentication mode="None">
</authentication>
2) change in web config file :
<authorization>
<allow users="?"/>
</authorization>
Another question that i have is this happens because the Plesk's default permission assigning to the main domain so the users can view content without problem, but the permission isnt assign to the created subdomains ?
If this is the problem, how can i fix it so my users can see the content with our Windows Authentication or Forms authentication or anything else?
this is my domain name : www.senatex.ir
and this is my sub domain : nerkh.senatex.ir
Also parallels default host files not have any problems, for example : content.senatex.ir
View 1 Replies
View Related
Jun 30, 2012
I recently upgraded to version 11.0. Since the upgrade, I am not longer able to to create Sub-Domains. I did this all the time with version 10x with NO issues whatsover, but now I get the following error when trying to create a subdomain:
Error: Invalid webmail type
SCREENSHOT OF ERROR IS ATTACHED.
View 9 Replies
View Related
Mar 27, 2008
How do those websites do a website like this.
[url]
But when you go to
[url]
It's not there. O_o Cuz you know how when you create subdomains in cpanel, it will create a folder for you? I wanted to do it where,
[url]
doesn't rely on that folder, but acts more like a public_html directory.
View 10 Replies
View Related
Feb 26, 2008
i'd like to use a code similar to the one below, to rewrite a sub directory to a subdomain. www.domain.com/aoa/info/ to info.domain.com and then error 301 if someone goes to www.domain.com/aoa/info/ directly
# rewrite foo subdomain requests to foo subdirectory
rewriteCond %{HTTP_HOST} ^foo.example.com
rewriteCond %{REQUEST_URI} !^/foo/
rewriteRule (.*) /foo/$1 [L]
#
# Prevent direct client access to foo subdirectory
rewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /foo [NC]
rewriteRule ^foo(.+) [url]
View 5 Replies
View Related
Oct 10, 2013
I have an ecommerce store. dns at godaddy. A record www points to the 3dr party hosted shopping cart solution on ip a.a.a.a. I also have a blog. A record blog subdomain points to another server b on ip b.b.b.b hosted away from the shopping cart server a completely.
So www goes one place and blog goes to another.The problem is I need to somehow make the blog appear within the main site as URL...blog instead of as a subdomain blog.domain.com.
I cannot access or modify the hosted shopping cart server in any way. I cannot load wordpress there, that is why it is on a completely separate server.I've been told this is perhaps possible with a reverse proxy configuraton on server b where ip b.b.b.b is.So that even though blog. points to server b it can appear that the url is www.mydomain.com/blog and the blog pages off that directory as well.Can this be done via reverse proxy?
View 8 Replies
View Related
Apr 15, 2015
I have following Warning when creating a new Domain inside a Subscriptions:
I found this Article: [URL] .....
But in my case this does not solve the Problem.
1> All permissions are right.
2> When I type command '/usr/local/psa/bin/repair --restore-vhosts-permissions' i get the answer 'Directory permissions were successfully updated.'
3> The Order of Webuser and FTPUser (as described in the article) could also not be the problem, because in my case there is only one user (There is only Webuser and no FTP-User.)
4> When typing '/usr/local/psa/bin/repair --update-vhosts-structure' I get the following error 6 times each:
Code:
[2015-04-15 21:03:30] ERR [util_exec] proc_close() failed
Error: update-vhosts-structure failed: mkdir: cannot create directory `./webroot.kk-bits.com/logs': File exists
ERROR: Cannot relink logs. Target directory '/var/www/vhosts/webroot.kk-bits.com/logs' is in invalid state.
Unable to update the structure of the home directory: an unexpected error has occurred.
update-vhosts-structure failed: mkdir: cannot create directory `./webroot.kk-bits.com/logs': File exists
ERROR: Cannot relink logs. Target directory '/var/www/vhosts/webroot.kk-bits.com/logs' is in invalid state.
To get the error 6 times seems to mean, that i have this problem with 6 Domain.
View 1 Replies
View Related
Feb 25, 2015
I use plesk 11, I was creat sub directory: domain.com/test. but I access via test.domain.com is ok, but domain.com/test is error " page not found" how to I access via domain.com/test ?
View 2 Replies
View Related
Sep 28, 2014
I'm setting up a SAAS service which is built on top of Laravel. To put it simply the service itself knows whether its being called from a sub.example.com or just example.com and serves a correct response accordingly. So going to sub.example.com will use the same index.php file as example.com but the routes and controllers within the application will provide a different response. sub.example.com will show a tenant login page where as example.com will show a new tenant subscription page or something else.
So when someone new subscribes I add a new entry to the database with a subdomain name for them and when a request comes from that subdomain and they are logged in it will show them their information. Easy right.
There is a problem though with setting it up with Plesk. When I add a wildcard subdomain, it will look for /subdomains/sub/ for the files which is a bit problematic since I want it to serve the files from the same place as the domain example.com.
Is there a way to configure that so that regardless of the subdomain it will try and serve the exact same content as my main domain?
View 2 Replies
View Related
May 11, 2015
Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).
I need to redirect page from subdomain to a new subdomain
Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage
Source site is very chaotic and there are no clear rule for redirection (no regex )
So I need to redirect every page but syntax:
Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage
doesn't work!
which is the correct syntax ?
Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ?
View 1 Replies
View Related
May 31, 2007
I have a situation like this:
There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.
View 3 Replies
View Related
Dec 11, 2008
How do I direct my httpd file to point to:
home/USER/public_html
instead of:
C:Users estetc...
I want to do this to make my test server just like the remote server.
View 5 Replies
View Related
Sep 18, 2008
I want to move the entire contents of a directory tree to another directory.
So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.
Im running CENTOS latest version.
View 4 Replies
View Related
May 21, 2009
First thing I would like to clear off I DO NOT WANT TO MAKE VPS FOR PROFITS/BUSINESS. I need to make VPS because me and my friend have bought this server
[url]
I want to make VPS because my friend like to use Ubuntu desktop and I like to use CentOS from the OVH website they pretty much give you the basics to make VPSes so I have chosen virtuozzo
So my enquiry is
1. Can I have Ubuntu desktop and CentOS on it at the same time
2. How easy is it to create VPSes using virtuozzo since I need a GUI and ease of use
3. Also if I want can I change from CentOS to forexample Ubuntu desktop too
4. Also does anyone know and good tutorials
My main use of creating different VPS with different OS on them so I can learn there language and other stuff
View 2 Replies
View Related
Apr 5, 2009
I want to create from a Dedicated server some vps.
What software i will need ?
Some basic info on how to create a vps offering Direct Admin as a panel?
Cpanel i think is more expensive...
View 11 Replies
View Related
Apr 25, 2009
When you create a SSL certificate for www.mydomain.com vs mydomain.com, is the "www" vs "non-www" decided when you generate the CSR (for example, in cpanel/whm)? Or is it "decided" when you actually purchase the certificate?
View 14 Replies
View Related
Jan 17, 2008
I have done the following guides below but I cant connect my ftp account. And i dont know my directory to public html
I would like to create an account for my staff but im quite novice of this and i dont know the directories name
Create a FTP user group. eg: ftpaccounts
#/usr/sbin/groupadd ftpaccounts
Add a new user to this group, and set the default path of that user to /home/user/.
#/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser
Set a password for the newley created user.
#passwd testuser
Set ownership of /home/user to the testuser and ftpaccounts.
#chown testuser:ftpaccounts /home/user
Give Read/Write access to testuser and all members in ftpaccounts
#chmod 775 /home/user
Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.
Restart the vsftpd service.
#/etc/init.d/vsftpd restart
View 2 Replies
View Related