• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Unable to generate the web server configuration file

Azurel

Silver Pleskian
I have create a "webspace" for domainB and get after this an e-mail with an error in domainA:

Unable to generate the web server configuration file on the host <rsXXXXXX.rs.hosteurope.de> because of the following errors:

nginx: [emerg] a duplicate default server for XX.XX.XX.XX:80 in /var/www/vhosts/domainA.tld/conf/13697787790.81151800_nginx.conf:9
nginx: configuration file /etc/nginx/nginx.conf test failed


Please resolve the errors in web server configuration templates and generate the file again.

13697787790.81151800_nginx.conf:9 is this line:
listen XX.XX.XX.XX:80 default_server;

What this mean? What should I do?


Plesk: 11.0.9#53
 
Last edited:
I have install this extentsion

It found 1 error:
Id: 24
File Path: (only a red circle, without a file-path)
Type: nginxDomainVhost
Belongs To: domainB.tld

Now I click on "Checker" tab:
Found errors: 0; Found Warnings: 0

Now I click on "Logs Search" tab and search "fail":

/var/log/sw-cp-server/error_log:
2013-06-24T12:12:29+02:00 ERR (3): Apache config (13720687470.83458900) generation failed: nginx: [emerg] a duplicate default server for XX.XX.XX.XX:80 in /var/www/vhosts/domainA.tld/conf/13697787790.81151800_nginx.conf:9
nginx: configuration file /etc/nginx/nginx.conf test failed

2013-06-24 12:12:29: (mod_fastcgi.c.2746) FastCGI-stderr: PleskUtilException: '/usr/local/psa/admin/bin/nginx-config' '-t' failed with code 1.

stdout:


stderr:
nginx: [emerg] a duplicate default server for XX.XX.XX.XX:80 in /var/www/vhosts/domainA.tld/conf/13697787790.81151800_nginx.conf:9
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 66
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(58): Service_Agent_Transport_Local_Exec->process(3, Object(Service_Agent_Command_Exec), Object(Service_Agent_Log), Object(Service_Agent_Transport_LocalTransaction))
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(24): Service_Agent_Transport_Local->_command(3, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction), Object(Service_Agent_Log))
#2 /usr/local/psa/admin/plib/Service/Agent.php(133): Service_Agent_Transport_Local->process('a0d138788e97099...', Array, Object(Service_Agent_Log))
#3 /usr/local/psa/admin/plib/Template/Writer/Nginx.php(28): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(203): Template_Writer_Nginx->test()
#5 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(117): Template_Configuration_Applier->_applyConfigurationsToServiceNode(1, Array)
#6 [internal function]: Template_Configuration_Applier->applyConfiguration()


/usr/local/psa/admin/logs/panel.log:
2013-06-24T12:12:29+02:00 ERR (3): Apache config (13720687470.83458900) generation failed: nginx: [emerg] a duplicate default server for XX.XX.XX.XX:80 in /var/www/vhosts/domainA.tld/conf/13697787790.81151800_nginx.conf:9
nginx: configuration file /etc/nginx/nginx.conf test failed


Which unfortunately does not help me further. ^^


In "Services management" I have shut down nginx and restart it again. Go to "Extension" shows no errors anymore.



EDIT:

I have look in the "last_nginx.conf" of my domains and found still this difference?

domainA
server {
listen XX.XX.XX.XX:80;

server_name domainA.com;
server_name www.domainA.com;
server_name ipv4.domainA.com;

domainB
server {
listen XX.XX.XX.XX:80 default_server;

server_name domainB.com;
server_name www.domainB.com;
server_name ipv4.domainB.com;
 
Last edited:
Hello, Azurel. Looks like default domain for some IP was changed but not all domains were reconfigured.
Execute:
# grep default_server /var/www/vhosts/*/conf/*_nginx.conf
to detect vhosts containing default_server option.

Have you tried to reconfigure all vhosts using:
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
it should help if there are no database inconsistencies on the server.
 
I have this server ~1month only for testing plesk, but actual not the time for testing.. so you can say its a fresh server with 11.0.9#53 with only 4 added domains.. domains have no content.
I don't know what "default_server" means. Is it bad?

I have tried:
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
but again I see:
# grep default_server /var/www/vhosts/*/conf/*_nginx.conf
the same result like before --reconfigure-all

This difference "default_server" is only in 2 of 4 domains. You say "database inconsistencies" but how can this happen?

Another question.. why are here so much conf files out of time? I have create a webspace and deactivated "SSL" in domain settings after creating:
Here only ip4 conf:
/var/www/vhosts/domainB/conf/13720687470.83458900_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainB/conf/13720687470.83458900_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainB/conf/13720721520.10832600_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainB/conf/13720721520.10832600_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainB/conf/13720721960.20823700_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainB/conf/13720721960.20823700_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainB/conf/13720729880.53151700_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainB/conf/13721656120.77817400_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainB/conf/last_nginx.conf: listen XX.XX.XX.XX:80 default_server;

These "SSL" files should not be deleted? At the latest after --reconfigure-all?
 
I don't know what "default_server" means. Is it bad?
"default_server" means that the vhost with such option is default for the IP address and can be accessed via IP address: http://XX.XX.XX.XX/
No it isn't.

but again I see:
# grep default_server /var/www/vhosts/*/conf/*_nginx.conf
the same result like before --reconfigure-all
The "default_server" option should be specified for one vhost on IP. In your case it looks like at least two vhosts have it or vhost and server config - such bug was found in early 11.5 but should not be actual for 11.0.
Please print the full command output:
# grep -r default_server /var/www/vhosts/*/conf/*_nginx.conf /usr/local/psa/admin/conf/
You say "database inconsistencies" but how can this happen?
Unclear. Didn't you try to upgrade to early PP 11.5?
What does following query show?
# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e 'select * from IP_Addresses'

These "SSL" files should not be deleted? At the latest after --reconfigure-all?
It's OK for 11.0.9 - the old vhost configs are not removed immediately but rotated. But nginx included only one config per vhost (the last successfully generated).
 
Please print the full command output:
# grep -r default_server /var/www/vhosts/*/conf/*_nginx.conf /usr/local/psa/admin/conf/

Thats it it:
/var/www/vhosts/domainA/conf/13696734210.81300700_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainA/conf/13696734210.81300700_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainA/conf/13697721330.86567800_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainA/conf/13697721330.86567800_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainA/conf/13697749970.71603300_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainA/conf/13697749970.71603300_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainA/conf/13697777750.98919500_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainA/conf/13697777750.98919500_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13720687470.83458900_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720687470.83458900_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720687470.83458900_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13720687470.83458900_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13720721520.10832600_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720721520.10832600_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720721520.10832600_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13720721520.10832600_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13720721960.20823700_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720721960.20823700_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720721960.20823700_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13720721960.20823700_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13720729880.53151700_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13720729880.53151700_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13721656120.77817400_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13721656120.77817400_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/last_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/last_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
grep: /usr/local/psa/admin/conf/generated/last_domainA_webmail.include: No such file or directory
/usr/local/psa/admin/conf/templates/default/domain/nginxForwarding.php: listen <?php echo $OPT['ipAddress']->escapedAddress . ':' . $OPT['frontendPort'] . ($OPT['defaultIp'] ? ' default_server' : '') ?>;
/usr/local/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php: listen <?php echo $OPT['ipAddress']->escapedAddress . ':' . $OPT['frontendPort'] . ($OPT['defaultIp'] ? ' default_server' : '') . ($OPT['ssl'] ? ' ssl' : '') ?>;

Didn't you try to upgrade to early PP 11.5?
I clicked on update link it in plesk panel, but close the update window without doing anything.

OS CentOS 6.4 (Final)
Panel version 11.0.9 Update #53, last updated at May 27, 2013 06:48 PM

The system is up to date; last checked at June 24, 2013 04:10 AM

Notify me when the next release version is available. Change Settings

See the History of Changes | Add or Remove Components

Upgrade to the version 11.5.29 is available.
Install Now | See What's New
Its okay to update now to 11.5.x? I need two php versions(5.3 and 5.4) on this server. ;)


What does following query show?
# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e 'select * from IP_Addresses'
Output:
Code:
+----+---------------+--------------------------------+-----------------+-------+--------------------+-------------------+-------+-------+--------+
| id | serviceNodeId | ip_address                     | mask            | iface | ssl_certificate_id | default_domain_id | ftps  | main  | status |
+----+---------------+--------------------------------+-----------------+-------+--------------------+-------------------+-------+-------+--------+
|  1 |             1 | XX.XX.XX.XX                    | 255.255.255.255 | eth0  |                  2 |                 8 | false | true  |      0 |
|  2 |             1 | XXXX:XXX:XX:1000:XXXX:XXXX:0:1 | 128             | eth0  |                  2 |                 8 | false | false |      0 |
+----+---------------+--------------------------------+-----------------+-------+--------------------+-------------------+-------+-------+--------+
 
and one more query:
Code:
mysql> select d.id as dom_id, d.name, ip.id as ip_id, ip.serviceNodeId, ip.ip_address, ip.default_domain_id, ip.main from domains d left join DomainServices ds on d.id=ds.dom_id left join IpAddressesCollections ipc on ds.ipCollectionId=ipc.ipCollectionId left join IP_Addresses ip on ipc.ipAddressId=ip.id;

Domains domainA, domainXX have default_server in config. It's really strange. Didn't you remember some specific actions for any of these domains? Maybe suspend / change hosting type / rename or something else?

Try to clean nginx' bootstrapper:
Code:
# > /usr/local/psa/admin/conf/nginx_vhosts_bootstrap.conf
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
Code:
mysql> select d.id as dom_id, d.name, ip.id as ip_id, ip.serviceNodeId, ip.ip_address, ip.default_domain_id, ip.main from domains d left join DomainServices ds on d.id=ds.dom_id left join IpAddressesCollections ipc on ds.ipCollectionId=ipc.ipCollectionId left join IP_Addresses ip on ipc.ipAddressId=ip.id;
Domains domainA, domainXX have default_server in config. It's really strange. Didn't you remember some specific actions for any of these domains? Maybe suspend / change hosting type / rename or something else?
I have create/delete domains... thats all.
Here the result:
Code:
 dom_id 	name 	ip_id 	serviceNodeId 	ip_address 	default_domain_id 	main
1 	domain1 	1 	1 	XX.XX.XX.XX 	8 	true
1 	domain1 	2 	1 	XXXX:XXX:XX:1000:XXXX:XXXX:0:1 	8 	false
1 	domain1 	1 	1 	XX.XX.XX.XX 	8 	true
1 	domain1 	2 	1 	XXXX:XXX:XX:1000:XXXX:XXXX:0:1 	8 	false
4 	domain2 	1 	1 	XX.XX.XX.XX 	8 	true
4 	domain2 	2 	1 	XXXX:XXX:XX:1000:XXXX:XXXX:0:1 	8 	false
4 	domain2 	1 	1 	XX.XX.XX.XX 	8 	true
4 	domain2 	2 	1 	XXXX:XXX:XX:1000:XXXX:XXXX:0:1 	8 	false
7 	domain3 	1 	1 	XX.XX.XX.XX 	8 	true
7 	domain3 	2 	1 	XXXX:XXX:XX:1000:XXXX:XXXX:0:1 	8 	false
7 	domain3 	1 	1 	XX.XX.XX.XX 	8 	true
7 	domain3 	2 	1 	XXXX:XXX:XX:1000:XXXX:XXXX:0:1 	8 	false
8 	domain4 	1 	1 	XX.XX.XX.XX 	8 	true
8 	domain4 	2 	1 	XXXX:XXX:XX:1000:XXXX:XXXX:0:1 	8 	false
8 	domain4 	1 	1 	XX.XX.XX.XX 	8 	true
8 	domain4 	2 	1 	XXXX:XXX:XX:1000:XXXX:XXXX:0:1 	8 	false


EDIT:

Try to clean nginx' bootstrapper:
Content:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
include /var/www/vhosts/domain1/conf/13721656120.77817400_nginx.conf;
include /var/www/vhosts/domain2/conf/13721656120.77817400_nginx.conf;
include /var/www/vhosts/domain3/conf/13721656120.77817400_nginx.conf;
include /var/www/vhosts/domain4/conf/13721656120.77817400_nginx.conf;

I delete this four files and make
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Result for /usr/local/psa/admin/conf/nginx_vhosts_bootstrap.conf:
include /var/www/vhosts/domain1/conf/13723288120.38488300_nginx.conf;
include /var/www/vhosts/domain2/conf/13723288120.38488300_nginx.conf;
include /var/www/vhosts/domain3/conf/13723288120.38488300_nginx.conf;
include /var/www/vhosts/domain4/conf/13723288120.38488300_nginx.conf;

I try again:
grep -r default_server /var/www/vhosts/*/conf/*_nginx.conf /usr/local/psa/admin/conf/

Result:
/var/www/vhosts/domainA/conf/13696734210.81300700_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainA/conf/13696734210.81300700_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainA/conf/13697721330.86567800_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainA/conf/13697721330.86567800_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainA/conf/13697749970.71603300_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainA/conf/13697749970.71603300_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainA/conf/13697777750.98919500_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainA/conf/13697777750.98919500_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13720687470.83458900_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720687470.83458900_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720687470.83458900_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13720687470.83458900_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13720721520.10832600_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720721520.10832600_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720721520.10832600_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13720721520.10832600_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13720721960.20823700_nginx.conf: listen XX.XX.XX.XX:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720721960.20823700_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:443 default_server ssl;
/var/www/vhosts/domainXX/conf/13720721960.20823700_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13720721960.20823700_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13720729880.53151700_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13720729880.53151700_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13721656120.77817400_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13721656120.77817400_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/13723288120.38488300_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/13723288120.38488300_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
/var/www/vhosts/domainXX/conf/last_nginx.conf: listen XX.XX.XX.XX:80 default_server;
/var/www/vhosts/domainXX/conf/last_nginx.conf: listen [XXXX:XXX:XX:1000:XXXX:XXXX:0:1]:80 default_server;
grep: /usr/local/psa/admin/conf/generated/last_domainA_webmail.include: No such file or directory
/usr/local/psa/admin/conf/templates/default/domain/nginxForwarding.php: listen <?php echo $OPT['ipAddress']->escapedAddress . ':' . $OPT['frontendPort'] . ($OPT['defaultIp'] ? ' default_server' : '') ?>;
/usr/local/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php: listen <?php echo $OPT['ipAddress']->escapedAddress . ':' . $OPT['frontendPort'] . ($OPT['defaultIp'] ? ' default_server' : '') . ($OPT['ssl'] ? ' ssl' : '') ?>;
 
Last edited:
I have create/delete domains... thats all.
Here the result:
Is there any comparison between:
domainA and domainXX from error messages vs domain1,...domain4 from the database query result?

I delete this four files and make
Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Did the utilty print some errors? If there were no errors during httpdmng --reconfigure-all execution it means the the problem is solved. But still unclear how to get steps to reproduce.
Didn't you removed subscriptions(domains) under any reseller account?
 
Is there any comparison between:
domainA and domainXX from error messages vs domain1,...domain4 from the database query result?
domain1 is domainA and domainXX+domainB is domain4. You means this? *EDITED*

Did the utilty print some errors? If there were no errors during httpdmng --reconfigure-all execution it means the the problem is solved.
The problem was solved in this post. ;)
In "Services management" I have shut down nginx and restart it again. Go to "Extension" shows no errors anymore.

But still unclear how to get steps to reproduce. Didn't you removed subscriptions(domains) under any reseller account?
first start of plesk I have create a user and with this was created a domain; domainA/domain1

(its difficult to explain in english ^^)
After this I add two more domains in "Websites & Domains". In putty/winscp I noticed that the path was ****.. all domains link to the same path: /var/www/vhosts/domain1/httpdocs
So I delete all addiotional domains and created again (I think a tested a new path too). In this point I understood/realize that I must create for each domain a "Webspace", so that each domain have its own "httpdocs".
Here too, I have delete and created again "Webspaces" for testings. Now each domain have his own webspace. Means 1 webspace = 1 domain.

Additional:
- I have with YUM updated centOS6.4 and I have installed MRTG.

domain1 + domain2 + domain3 have a custom "vhost.conf". All this 3 domains have now no "default_server" in "last_nginx.conf".
domain4 have no "vhost.conf" and "default_server" in "last_nginx.conf".

domain1 have 22 conf-files
domain2 have 15 conf-files
domain3 have 15 conf-files
domain4 have 18 conf-files

Help this?
 
Last edited:
domain1 have 22 conf-files
domain2 have 15 conf-files
domain3 have 15 conf-files
domain4 have 18 conf-files

domain1 have now 34 conf-files
domain4 have now 21 conf-files

Looks strange for me.

New is that I updated to version #55
 
Today domain1 have only 20 conf-files. After you command is 20 conf-files too. 20 conf-files are normal in /var/www/vhosts/domain1/conf?
 
It could be normal if you made ~20 reconfiguration or hosting preferences changes (php on/off for example) for the domain since last time the configs were rotated (it's performed once a day by the DailyMaintenance script)
 
Here ls -all

-rw-r----- 1 root apache 342 May 13 17:19 13684583760.06441800_httpd.include
-rw-r----- 1 root apache 14263 May 13 17:19 13684583760.06441800_httpd_ip_default.include
-rw-r----- 1 root apache 342 May 13 17:26 13684588170.34207700_httpd.include
-rw-r----- 1 root apache 14263 May 13 17:26 13684588170.34207700_httpd_ip_default.include
-rw-r----- 1 root apache 342 May 13 19:27 13684660340.92849600_httpd.include
-rw-r----- 1 root apache 14263 May 13 19:27 13684660340.92849600_httpd_ip_default.include
-rw-r----- 1 root apache 342 May 13 19:27 13684660740.60350200_httpd.include
-rw-r----- 1 root apache 14263 May 13 19:27 13684660740.60350200_httpd_ip_default.include
-rw-r----- 1 root nginx 2870 May 27 18:50 13696734210.81300700_nginx.conf
-rw-r----- 1 root nginx 2870 May 28 22:15 13697721330.86567800_nginx.conf
-rw-r----- 1 root nginx 2870 May 28 23:03 13697749970.71603300_nginx.conf
-rw-r----- 1 root nginx 2870 May 28 23:49 13697777750.98919500_nginx.conf
-rw-r----- 1 root apache 7454 May 29 00:06 13697787790.81160700_httpd_ip_default.include
-rw-r----- 1 root apache 3880 May 29 19:11 13698474860.86633400_httpd_ip_default.include
-rw-r----- 1 root nginx 2840 Jun 30 16:50 13726038410.77448800_nginx.conf
-rw-r----- 1 root apache 7455 Jun 30 16:50 13726038410.77458700_httpd.include
lrwxrwxrwx 1 root root 34 Jun 30 16:50 last_httpd.include -> 13726038410.77458700_httpd.include
lrwxrwxrwx 1 root root 45 May 29 19:11 last_httpd_ip_default.include -> 13698474860.86633400_httpd_ip_default.include
lrwxrwxrwx 1 root root 31 Jun 30 16:50 last_nginx.conf -> 13726038410.77448800_nginx.conf
-rw-r--r-- 1 root root 929 Jun 30 16:56 vhost.conf

I don't understand why here are so much old files.
 
Back
Top