-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathapachetemplate_ipbased
76 lines (51 loc) · 2.38 KB
/
apachetemplate_ipbased
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#____________start of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________
# Comment: {aciklama}
# this file used in Easy Hosting Control Panel (ehcp), www.ehcp.net
# bu kısım aslında bir defa olsa olur.
<VirtualHost {webserverip}>
ServerName {webserverip}
DocumentRoot /var/www/new
</VirtualHost>
<VirtualHost {webserverip}>
ServerName webmail.{domainname}
ServerAlias mail.{domainname}
ServerAlias email.{domainname}
DocumentRoot {ehcpdir}/webmail
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined
php_admin_value open_basedir {ehcpdir}/webmail
php_admin_value upload_tmp_dir {ehcpdir}/webmail/data
php_admin_value session.save_path {ehcpdir}/webmail/data
</VirtualHost>
<VirtualHost {webserverip}>
ServerName cpanel.{domainname}
ServerAlias panel.{domainname}
ServerAlias ehcp.{domainname}
ServerAlias cp.{domainname}
DocumentRoot {ehcpdir}
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog /var/log/apache_common_access_log vhost_combined
php_admin_value open_basedir {ehcpdir}
</VirtualHost>
<VirtualHost {webserverip}>
ServerName {domainname}
ServerAlias www.{domainname} {wildcarddomain} # this is changed to *.{domainname} within classapp.php
# buraya aliaslar yazilacak..
{aliases}
UseCanonicalName Off
DocumentRoot {homedir}/httpdocs
# this combined log format is understandable by webalizer... some other formats are not recognised by webalizer.. thats why, specified here explicitly..
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined
# this is pear compatible:
php_admin_value open_basedir "{homedir}:/usr/share/php:/usr/share/pear"
php_admin_value upload_tmp_dir {homedir}/phptmpdir
php_admin_value session.save_path {homedir}/phptmpdir
AccessFileName .htaccess
{customhttp}
</VirtualHost>
#____________end of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________