[ASK] virtualhost template

F

fotonarya

Guest
#1
How to set virtualhost template correctly?

I already add virtual host for domain1.com and domain2.com then pointing the nameserver for domain2.com to ns1.domain1.com and ns2.domain1.com
I can access and ping ns1.domain1.com but I cannot access and even ping domain2.com.

And I have this error too
Code:
2014-12-15 22:07:35.178  ERROR  [config:template:domain1:vhost:domain1:context:/cgi-bin/] Path for context location is invalid: /usr/local/lsws/domain1/cgi-bin/
2014-12-15 22:07:35.178  ERROR  [config:template:domain2:vhost:domain2:context:/cgi-bin/] Path for context location is invalid: /usr/local/lsws/domain2/cgi-bin/
I already have made a directory before for both VirtualHost

Regards,
 
#2
Whether the vhost works , you can see them in dashboard.
I think you have make the vhost root dir , but u have not make a cgi-bin dir under the root dir.
For you used the conf,xml has a context rule about the cgi-bin , you can delete the rule or makea cgi-bin dir
Hope can help u. By the way which version you are using 1.3.6? or 1.4.3
 
F

fotonarya

Guest
#3
I use 1.3.6
Already fix the error with make cgi-bin directory
But still cannot access or ping domain2.com
And I can see all vhost are running
 
#4
Why pointing the nameserver for domain2.com to ns1.domain1.com and ns2.domain1.com?
I only change the A record to the host IP. Both the domian1.com and domain2.com .
domian1.com only a virtualhost , not dns server.
 
F

fotonarya

Guest
#5
I need wildcard subdomain on domain2.com
but my domain registrant donnot allowed wildcard subdomain
 
Top