Plesk 12.x / Linux :: Change Port Access To Subdomain?
Feb 11, 2015I have to change what file and how to modify it to allow only one subdomain to have access through port 8015 and not using port 80?
View 7 RepliesI have to change what file and how to modify it to allow only one subdomain to have access through port 8015 and not using port 80?
View 7 RepliesI need to access plesk 11.0 over a subdomain at port 80 rather than port 8443 as my office firewall blocks the port 8443.
I tried KB article [URL] .... but its not working.
E.g.: I would like to access plesk panel @ portal.example.com rather than @ example.com/8443or8880
I have ample of spare IPs to use it...
I need changing the nginx port. I've followed various threads and have created a custom nginxDomainVirtualHost.php file at: /usr/local/psa/admin/conf/templates/custom/domain, while the website indeed moves to the port I have set, a second nginx thread starts at port 80 and takes over in it's place.
I need to put varnish at port 80 and cannot do so until all services relinquish control on port 80.
Followed clues here: [URL] ....
some here: [URL] .....
Turn's out to be able to change the nginx port to a non-standard port you need to edit 6 files
nginx.php
nginxDomainForwarding.php
nginxDomainForwardingIpDefault.php
nginxDomainVhost.php
nginxDomainVhostIpDefault.php
nginxWebmail.php
For the time being i disabled SSL support for my test domain as I didn't need it. The line you need to look for the in above files is:
Code:
$VAR->server->nginx->httpPort
So the line would finally become from this:
Code:
<?php echo $VAR->includeTemplate('server/nginxVhosts.php', array(
'ssl' => false,
'frontendPort' => $VAR->server->nginx->httpPort,
'backendPort' => $VAR->server->webserver->httpPort,
)) ?>
to this:
Code:
<?php echo $VAR->includeTemplate('server/nginxVhosts.php', array(
'ssl' => false,
'frontendPort' => "8888",
'backendPort' => $VAR->server->webserver->httpPort,
)) ?>
To get this to work you'll need to create a custom directory at: /usr/local/psa/admin/conf/templates
And copy the files over from the root of /usr/local/psa/admin/conf/templates/default
How change control panel url port (8443 to 9859)?
View 15 Replies View RelatedI was wondering if it is possible to disable plesk redirect for clients domains on port 8443.I do not not want clients to to be able to access the plesk login screen when they visit exampleclientdomain.com:8443 but obviously i still want to be able to access my control panel e.g. myprimarydomain.com:8443. Is there something i can do to prevent the sites redirecting to my primary domain or am i better creating a htaccess rule to stop/redirect traffic on port 8443 ?
View 2 Replies View RelatedHow can I allow only one ip or a list of ip addresses to access port 8443.I need to limit access this port to few ip addresses and not everyone
View 6 Replies View RelatedI 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 RelatedI have a Windows VPS with Plesk panel. Windows Server 2008 R2 with plesk panel version 11.5.30.
I tried to change the default plesk panel port (8443) to eg (1234) without any success.
The steps i followed are the following:
1) Firewall -> Inbound rule -> allow for port 1234
2) Firewall, Disable inbound rule for port 8443
3) IIS, PleskControlPanel, Bindings: changed binding from 8443 to 1234.
Now i type on browser: [URL] .... and while its loading after some seconds redirects me to [URL] ...
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
Currently I am using Linux + cPAnel and using the port 25 for email sevrer. Currently we facing 1 problem is, some user's ISP is not support port. May I know how can I add additional port into server and allow users to send mail by different port?
View 1 Replies View RelatedI have a client on a dedicated IP, today we needed to downgrade the web hosting plan. As the web hosting plan puts users on a default shared IP, this plan change also changed the dedicated IP to the shared one causing some propagation issues for a small period of time.
I have contacted WHMCS about this asking if they had a way of changing the clients plan but keeping the IP address intact as this could lead to some very undesirable outcomes. They explained that it is not their fault and to contact Parallels.
I know I can change the plan directly in Plesk however by initiating the plan change via WHMCS, everything is automated.
I'm planning on hosting some websites for customers. I am using Plesk 12. So far so good.
Now here's the problem. For some reason my host by default doesn't offer subdomains (unless I buy a more expensive package). Will this cause any problems? For example webmail.mydomain.com won't work because it uses a subdomain.
Will there be another way for customers to access their webmail?
After I post my desired subdomain as mysubdomain.domain.com on /mysubdomain.domain.com/
I get "Error: phpinimng failed: Usage: phpinimng [options] [php_ini_file] phpinimng: error: no such option: --global-config" on main window.
Tried to search how to fix this error, i managed to find that there is also " missing or incorrect /usr/local/sb/include/init.php ". As for this error this doesn't work [URL] .... It's already correct permission 755.
The subdomain appears only in DNS records on my domain. But not in the main plesk panel window.
OS is Debian 7.6 and Plesk 11.5, mysql runs over sock
Maybe I could create manual configuration over ssh in /var/www/vhost/ dir ..?
I'm currently running Pootle on www.example.com:8000 and I'd like to be able to access it from pootle.example.com but Pootle has its own python server. I use Apache. How could I do that?
View 4 Replies View RelatedI 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 RelatedI have a problem with Nginx on myPlesk 12 with wildcard dns.I want subdomains URl to be like root domain url. Exemple. URL...You can see a live exemple here: URL.... give error 404 instead of showing root domain file (URL....). It's the same for images.What specific rule I must add in plesk panel?
View 5 Replies View RelatedMy config :
CPUAuthenticAMD, AMD Opteron(tm) Processor 4334
VersionParallels Plesk v12.0.18_build1200140606.15 os_CentOS 6
OSCentOS 6.5 (Final)
I install and use a site with wordpress in multisite mode using subdomain > its ok to make it work,
I create vhost.conf in /var/www/vhosts/system/mydomain.com/conf/vhost.conf
And add A key *.mydomain.com in DNS
I try to go to webmail.mydomain.com and it always redirect to my domain.com, I create a subdomain manually and subdomain don't work WHY ?
Question : What must I do to allow manual subdomain and webmail under Plesk v12.0.18_build1200140606.15
I trying to setup php5.4 on a Plesk 11.0.9 server using this guide:
[URL]
It works without problems but I can't get it to work on a subdomain.
As far as I know, the only difference should be the path in the vhost.conf. I changed that to match the path to the subdomain, restarted apache but it still won't start php5.4
I created a subdomain, delete all entries except the NS and A Records. I changed the NS records. Now i have to delete the Soa Record for this subdomain. I don't know, whether this was the correct way...
View 1 Replies View Relatedinstalling a softarwe that used port 8088, but that port is used by plesk. What ports not used by plesk and how do I assigned one to this new software.
server Centos 5 +
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
Can't add new subscriptions or domains/ subdomain after upgrade. Upgraded to 12.0.18 today and can no longer add domains or subdomains. When I try create a new subscription I get the following error:
New configuration files for the Apache web server were not created due to the errors in configuration templates:
Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error =
Template_Exception: No data. file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Variable_Exception: No data. file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0.
Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.
Trying to generate all configuration files OR generate broken configuration files doesnt work. Still get the same error.
When I try can create a subdomain I get the error:
.............
Error: proftpd-config failed: mktemp: failed to create file via template `/etc/proftpd.d/50-plesk.conf.XXXXXX': No such file or directory
Can not create temporary file
...........
This solution [URL] ..... doesnt work that just says 'ls: cannot access /etc/proftpd.d/: No such file or directory'
I tried yum update proftpd to see if that would do anything but get this...
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* atomic: mir01.syntis.net
193 packages excluded due to repository priority protections
Setting up Update Process
No Match for argument: proftpd
No package proftpd available.
No Packages marked for Update
In plesk, ProFTPD ftpserver is showing as installed.
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]....
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 ...
Each migration in the last years I'm running into this bug that Postfix wants to run on port 587 even though this is turned OFF in the Plesk Panel.
Sometimes it does this after some update.
Because another process is running on port 587 this means that postfix does not start and I have some downtime until I "repair" this.
"Repairing" means going into Plesk panel and turning ON SMTP-Auth.... Wait a moment for it to apply and then turning it OFF again....
This unwanted behaviour can be easily reproduced by having this option turned off in the Plesk panel and then running /usr/local/psa/admin/sbin/mchk --without-spam
This will end up in a non-running postfix if another process is already running on port 587.
This shouldn't be happening. Especially because I reported this behaviour years ago..
I would like to close port 25 and use other port for SMTP service and so avoid a lot of attempts to Access my SNTP port.
I followed all the steps in [URL] ... included the last one, about close port 25 from external.
And now qmail can send mails but can not receive from external senders. Is there any solution for solve it? or qmail must listen port 25?
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 Relatedchange 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; ?>
I'm trying to create a subdomain using API but get this as the response:
[result] => Array
(
[status] => error
[errcode] => 1002
[errtext] => ProtDir_Apache::update() failed: Unable to create user protection directory:Service node is unknown for sysuser with id=0
[code]....
how do you set the hosting type for the subdomain?! I don't see this in the docs.
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?