Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set Nginx as default webserver
#1
Question (shortened): How can I set nginx as default and make sure it works, not apache,


<strong>Short Answer:</strong>

The short, easy, practical way: ehcp gui -> options -> advanced -> select nginx, submit
if you do not do this, the default server of apache will be invoked in some intervals by ehcp.


<strong>Related Info:</strong>

A less known feature of ehcp is its nginx integration,
and ehcp is known to be first and only opensource hosting control panel that supports nginx directly.

Ehcp installs & configures apache & nginx while installing ehcp itself. Server admin may choose to operate on one of these web servers through ehcp gui.

ehcp installs both apache & nginx, but only one is active at a moment.
apache is default now, but server admin may set nginx as described above.
ehcp tries to configure & run nginx, then, if something goes wrong, apache is used as a fallback.

If, somehow, your server switch backs to apache, althaugh you set nginx in advanved options, then, there is something wrong in your nginx configuration. Let me know, I will explain more. You may even disable apache start code inside ehcp php code.


To set some configuration for all domains, for nginx,
edit following files:
ehcp/etc/nginx/apachetemplate.nginx
ehcp/apachetemplate

(actually the second one is used, but first is copied over second on webserver switch, as above) **

after editing, ehcp gui -> options -> sync domains

To allow/deny for some Ip, put related nginx config in these files,

You may also do this on per-domain basis like this: ehcp gui -> choose domain -> click "edit apachetemplate" (link name is confusing here, I will fix it later)
in this case, only configuration for that domain is changed.

for nginx ip denying, http://nginx.org/en/docs/http/ngx_http_access_module.html

<strong>Non-Domain configurations</strong>
above file & per-domain settings only affects domain's configurations.
To change for example, http://{serverIP}/ehcp , (that is, not domain)

you should change & sync following files:
ehcp/etc/nginx/default.nginx
/etc/nginx/sites-enabled/default

two files operates similar to description above (**)

All files in ehcp/etc are used to copy onto their counterparts in linux/ubuntu system, so, changing them according to your needs may fix some of your needs.
some file namings are confusing, like ehcp/etc/nginx/apachetemplate.nginx (as a natural result of apache-to-multi webserver transition in ehcp)

if you have more questions, let us know.


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#2
ehcp ağ ayarlarını yaptım. 192.168.2.100 - 255.255.255.0 - 192.168.1.1 - modemin açılması gereken Bütün portları açık istenildiği gibi. SAbit IP başka bilgisayarlara yazıldığında panel görünüyor. Fakat sdite sayfaları görüntülenemiyor. Ama EHCP nin kurulduğu bilgisayarda görüntüleniyor...Ne yapmalıyım

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#3
Portlardan hangilerini açtınız/yönlendirdiniz ? 53 var mı ?
Dış bilgisayarlardan siteler görünmüyorsa, domain çözümlenemiyor olabilir.

dış bilgisayardan ping domain yaptığınızda ping atabiliyor mu ?

ping IP yapınca ping atıyor, ama ping domain yapınca atmıyorsa, domain çözümleme yapamıyor, bu da dns çalışmıyor/erişilemiyor demektir.



Restored from old drupal forum, for user uid:157 username:kuzeyege
You may reset your password to access your new account here.
Reply
#4
sabit ip yi yani http://95.70.180.233 ip sini dışarıdaki herhangi bir bilgisayardan girdiğimde sorun yok "ehcp default page " sayfası çıkıyor. fakat http://www.korfezceviz.com dediğimde sayfa görüntülenemiyor. yani dnslerini değiştirdiğim ve tanıttığım sitelere ulaşılamıyor...Yönlendirdiğim portlar arasında 53 udp olarak görünüyor. TCP olarak ta denedim aynı. Pİng atıyor

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#5
internetteki dns check sitelerinden, domain adınızın dns'inin çözümlenip çözümlenmediğine bakın. çözümleniyorsa, dns normal çalışıyor demektir. çözümlenmiyorsa, ozaman dnsde sorun var demektir. dns çözümleniyorsa, başka sorunlara bakmak gerekir. normalde çalışır. domainleri, satın aldığınız yerden, sizin sunucunuza yönlendirdiniz değil mi ? yani registered dns olarak, kendi sunucunuzu ayarlamanız gerekmektedir.

Ben dışardan sizin için baktım , bu ipde dns erişilemiyor. yani birincil probleminiz şuan ya sunucu/ip kapalı şuan, ya da dnse erişimde sorun var.


Restored from old drupal forum, for user uid:157 username:kuzeyege
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping