1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and Plesk
  1. vnat
  2. Wednesday, 22 April 2015
  3.  Subscribe via email
no vhost.conf files?
Rate this post:
  1. 22.04.2015 09:04:30
  2. # 1
vnat Accepted Answer
Posts: 9
Joined: 31.03.2015
0
Votes
Undo
I'm new to both Cloudlinux and to Plesk, but if I understand correctly - once CloudLinux is installed, there are no /var/www/vhosts/system/XXXXXX.COM/conf/vhost.conf files ? Is that the case or should there be a vhost.conf file for each web site?  (I don't see any so this is why I'm asking, Plesk documentation mentions vhost.conf files)

I am also asking because hosting limits aren't the only things that can go in a vhost.conf file (other items can be php settings, rewrite settings), so I'm a bit confused about not finding any vhost.conf files.

I see through LVE Manager we can limit processes, memory, etc per site.  But what about other settings that would normally go in an Apache config (httpd.conf or vhost.conf)?


Thanks
  1. 22.04.2015 12:04:47
  2. # 2
vnat Accepted Answer
Posts: 9
Joined: 31.03.2015
0
Votes
Undo
Hello Bogdan,

Thank you, so yes - there is a httpd.conf file at /var/www/vhosts/system/DOMAIN.COM/conf/httpd.conf, however the very first lines of this file state that this file is auto-generated and not to make changes to it:


#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.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/DOMAIN.COM/conf/vhost.conf
#/var/www/vhosts/system/DOMAIN.COM/conf/vhost_ssl.conf

(and there are settings after these commented lines like for Virtual Host IP, Server Name, Document Root, etc... it's a populated config file)


However when I look for /var/www/vhosts/system/DOMAIN.COM/conf/vhost.conf  - this vhost.conf file doesn't exist, here is the directory structure:



# ls -al /var/www/vhosts/system/DOMAIN.COM/conf/
total 80
drwxr-x---. 3 root psaserv 4096 Apr 22 12:08 .
drwx--x--x. 7 root psaserv 4096 Apr  9 13:13 ..
-rw-------  1 root apache  6331 Apr 21 14:12 httpd.conf
-rw-------  1 root apache  6546 Apr 21 14:12 httpd.conf.bak
-rw-------  1 root root    6331 Apr 22 12:08 httpd.conf_saved
-rw-------  1 root apache  9326 Apr 21 13:06 httpd_ip_default.conf
-rw-------  1 root apache  9326 Apr 21 13:06 httpd_ip_default.conf.bak
lrwxrwxrwx  1 root root      10 Apr 21 14:12 last_httpd.conf -> httpd.conf
lrwxrwxrwx  1 root root      21 Apr 21 13:06 last_ip_default.conf -> nginx_ip_default.conf
lrwxrwxrwx  1 root root      10 Apr 21 14:12 last_nginx.conf -> nginx.conf
-rw-------  1 root nginx   2485 Apr 21 14:12 nginx.conf
-rw-------  1 root nginx   2575 Apr 21 14:12 nginx.conf.bak
-rw-------  1 root nginx   2605 Apr 21 13:06 nginx_ip_default.conf
-rw-------  1 root nginx   2366 Apr 20 14:06 nginx_ip_default.conf.bak
drwxr-xr-x  2 root root    4096 Apr 21 14:12 siteapp.d
-rw-r--r--  1 root root       2 Apr 22 03:48 stat_ttl.conf




So this is why I'm a bit lost here (httpd.conf file tells me to modify a file that doesn't exist).  If we had to make some custom changes, i don't know if I should manually create this vhost.conf file, and if so should it be a 100% copy of httpd.conf (with changes)? Or only contain the modified "sections"? 



Thank you
  1. 22.04.2015 15:04:18
  2. # 3
vnat Accepted Answer
Posts: 9
Joined: 31.03.2015
0
Votes
Undo
Hi Bognan,

Thanks I just asked Plesk/IOdin and they explained this which makes sense:


--
If you didn't add some additional apache- and/or nginx directives over the Plesk - Control - Panel, then these files ( vhost.conf / vhost_nginx.conf ) don't exist yet. Just move to 

Websites & Domains > YOUR - Domainname > Web Server Settings

and you will see two boxes, one for apache and one for nginx, where you can add additional settings. Once you did that, the corresponding *.conf - files will be created.
--


So that explains everything  :)
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.