Plesk 12.x / Linux :: Making Subdomain Serve Files From Same Directory As Main Domain
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
ADVERTISEMENT
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
Jan 23, 2007
I have a domain name as per my sig. I am also creating a subdomain totally in contrast with that site below. My primary domain has one page on it so i would like to:
a) delete the one page on my primary domain
b) Make the contents of my subdomain my primary domain. e.g my domain is www.info-peep.com, my sub will be example.info-peep.com........i would like to make example.info-peep.com : www.info-peep.com......that make sense, as really the sub will be my main site.
Basically wanting to transfer the contents of my sub to my primary. So when people click info-peep.com, it will be the sub's site. Another thing to note is that i am using RVsitebuilder (WYSIWYG) that my web host provides. Also BEAR IN MIND the WYSIWYG editor does not allow me to move pages (sucks) or to copy the page contents.
View 7 Replies
View Related
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
Aug 30, 2014
I cannot seem to find a conclusive answer to this. I use subdomains to create client websites then once they are in their own domains the subdomains still remain. Can I delete only the subdomain and leave all the files or at least leave the database since it is still connected to the new domain. Example below.
subdomain.example.com uses database1
newsite.com still uses database1
Is there a way to copy the database into the new domain?
View 1 Replies
View Related
Apr 7, 2014
I need to make it so that all possible subdomains will go to my main site
How do I do that?
View 4 Replies
View Related
Apr 7, 2015
I've got a customer that has a website at hisdomain.com . He created a subdomain called dev.hisdomain.com for the new version of his website. Now he wants to take it live. Had he created dev.hisdomain.com as a subscription instead of a subdomain, it would have been easy to "rename" the old site to old.hisdomain.com and then rename the new site to the current name.
Am I going to have to move all the files around at the command line or is there an easier way to switch around the sites? The server in use is CentOS 6.6
I thought that those were my options.
Click to expand...
Click for original message
View 6 Replies
View Related
Jan 20, 2015
When i add a Domain or Subdomain through Plesk Panel, I get the following Warning :
Attention: relink-vhost-logs failed: mkdir: cannot create directory `./vps118861.ovh.net/logs': File exists ERROR: Cannot relink logs. Target directory '/var/www/vhosts/vps118861.ovh.net/logs' is in invalid state.
[URL]
I tried the 2 solutions but I still have the error... here are the results of the two commands :
[root@vps118861 logs]# ls -alh
total 2,3M
drwxr-xr-x 16 administrateur root 4,0K 20 janv. 13:59 .
[Code]....
View 2 Replies
View Related
Nov 28, 2014
Following configuration given:
Abo with "domain.com" - Hosting Type - Webspace (with E-Mail Services)
Subdomain "sub.domain.com" - Hosting Type - Forward
Customer asked us to activate Forward for "domain.com "to other Domain for 2 weeks - but as soon as a Subdomain points on a Domain - I can NOT change the Hosting Type anymore ... WHY???
If I want to change Hosting Type from Hosting to Forward for some weeks - it always deletes the whole Webspace for the Domain ... ?!?
1) Why can't I change Hosting Type when a Sub-Domain is created?
2) Why can't I tell Plesk to change Hosting Type WITHOUT deleting the whole Webspace ...
View 1 Replies
View Related
Jul 6, 2014
When I am setting new directory for domain, the domain is served from old directory.
1. New directory has exactly the same file permissions as old one.
2. Restarting httpd service doesn't work
3. I am using Plesk 12
View 2 Replies
View Related
Apr 23, 2015
I want to add a subdomain foo.bar.com to a master domain bar.com in the subscription bar.com. Normally this works but if I set the hosting type of the master domain to forward, I cannot add subdomains anymore. If I have already added a subdomain, I cannot change the hosting type of the master domain. Also it is not possible to add a second domain to the subscription anymore.
View 6 Replies
View Related
Sep 1, 2014
change the webmail from Plesk over
/usr/local/psa/admin/conf/templates/custom/domainWebmail.php
thats working without a problem if i change the Webmail Subdomain from one to another.
But i want to change the webmail from
webmail.domain.tld
to
domain.tld/webmail
The following change in domainWebmail.php does not work:
ServerAlias "<?php echo $VAR->domain->asciiName ?>/webmail"
<?php foreach ($VAR->domain->mailAliases AS $alias): ?>
ServerAlias "<?php echo $alias->asciiName ?>/webmail"
<?php endforeach; ?>
View 1 Replies
View Related
Nov 29, 2014
My requirement is to redirect all hosted domain's webmail to the main hosting webmail url .. how can this be achieved ?
View 7 Replies
View Related
Apr 13, 2015
I am running a CentOS 6.5, 64-bit server with Plesk 12.0.18, and need to install a wildcard SSL for one of the domains/sub domains hosted on this server.
So you have the csr and private key installed (and domain.crt?), you just need to open..
1. COMODORSAAddTrustCA
2. COMODORSADomainValidationSecureServerCA
On your desktop and combine the two files into a new intermediate.crt file and upload that as the CA File.
But I'm not sure why you can't add it as text.
Click to expand...
Click for original message
View 7 Replies
View Related
May 30, 2014
i'm running the latest version of Plesk 11 on a Ubuntu 12.04 system.
We have a customer with a domain and this customer added other domains to his account.
now, 2 domains are not working, he created the as usual, Plesk created the directories under /vhosts/domain.com/domain1.com and the vhosts.conf are also correct.
when i'm opening the domain in the browser, i get the following error message:
The requested URL /var/www/vhosts/domain.com/index.php was not found on this server.
View 3 Replies
View Related
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
Jul 14, 2014
Want to activate webDAV in a specific domain with a v_host conf file, but do not have a /conf directory in the domain path. How can I manage the this?
View 2 Replies
View Related
Aug 13, 2008
I plan to build huge image gallery, using lighttpd to server these images. It would be easiest for me to have all these files (more than 1 000 000) in one directory? Is it ok?
I have no idea, if this can cause any problems. Should I part my files into several directories, does it make serving better/faster?
View 14 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
May 18, 2014
When I use website copy function the website files are copied to another domain but the database remains on old site. I use this function to move the website from devel state to the production state. All sites work fine but when i schedule the backups all databases are saved on old domain. How to move the database on production domain?
View 1 Replies
View Related
Sep 2, 2013
I think the wrong text is displayed for the option "Remove Domain Alias".
In Plesk 11.5.30 Update #13, in a Webspace, on the Websites & Domains tab, if I click an alias, a window appears for the alias with the option to "Remove Domain Alias". If I move the cursor over the text "Remove Domain Alias", or click on the link, I see a pop-up: Removing this website will also delete all related files, directories, and web applications from the server.
I think this is incorrect because removing an alias should not remove any files, directories, and web applications.
View 3 Replies
View Related
May 19, 2015
Currently Plesk only has the ability to make a full backup of the data. Now, this is quite an issue since I have accounts on my server that are over 280GB. Making a full daily backup of that and allowing clients to have a history of 10 days, isn't viable.
Is there perhaps a way one can make differential backups?
View 2 Replies
View Related
May 26, 2014
when I try to change main domain, e.g. domain.ru to domain.com, I see that Application Pool changed only for main domain, all additional domain use old Application Pool.
View 1 Replies
View Related
Aug 19, 2014
I have a Cloud VPS with 1and1 and Plesk is installed on it. I happen to have a VPS view that doesn't include DNS functionality for the domains.
So, i have added domain to the system, create an email address... because i dont see on how i can manage DNS settings I have set up cloudflare and pointed domain to the cloudflare and cloudflare is pointing to server.
so I have email: me@domain.com
on cloudflare i have:
A domain @ IP
A www @ IP
CNAME mail @ domain
MX 10 mail.domain
In plesk i have set up an alias, mail.domain for domain, that has access to email.
I go to the network-tools.com to look up me@domain.com:
[Resolving mail.domain...]
[Contacting mail.domain [IP]...]
[Timed out]
View 3 Replies
View Related
May 28, 2014
I recently upgraded my Apache 2.2.22 installation on Win 8.1 to 2.4.9, making all necessary changes (I believe) to the conf files. I am puzzled that two files in the format authdigest_shm.xxxx now appear in my logs directory when the server is restarted. (Edit: there is also no httpd.pid file)I assume this is to do with running digest authentication, but is a new phenomenon since the upgrade.what conf file setting(s) have I screwed up?!
View 2 Replies
View Related
Jun 24, 2015
How do I add aliases to the Full hostname of the plesk server itself? I want the server to listen to 2 more names. Especially for mail, and for migratory purposes (plesk server x is a new one, the name of the old one y needs to become an alias of x later on, etc.). I'm amazed by how hard to find this is, and there is literally nothing on it that I can find!
Of course, I can add aliases via command line, but I have no intentions of having postfix and webserver config be overwritten every time the control panel is used..
View 4 Replies
View Related
Jun 11, 2009
Im using Cpanel and I would like to have all subdomains of a domain I host point to the main root directory of the site. How would I do that in cpanel? When I click on subdomains do I just put the wildcard * for the subdomain name?
Also what do I do if I want to point all subdomains to the main directory except for the certain domains I specify? So if I wanted blogs.domain.com to point do a different location but still have all other subdomains point to the main directory.
View 2 Replies
View Related
Nov 20, 2014
It's possible to change the main plesk user "admin" I would chenge the "name" only because chrome make me crazy with password stored
How can I change from panel or from everywhere the "admin" username without any problem of course in the plesk functionality
View 4 Replies
View Related
Jul 22, 2014
My DC put a button on Plesk 12 menu about Purchase domains, i dont went to my customer see this kind of stuff, which file i need to edit to remove this?
View 2 Replies
View Related