4

We intend to use Apache server for web development. For serverside scripting we wish to use server side javascript.

What is needed to make serverside javascript work on Apache server? Is SSJS recommended to use for serverside scripting? Where can we get any information and samples about SSJS in Apache server?

Any help and information will be kindly appreciated.

Tornike Shavishvili
  • 988
  • 4
  • 13
  • 30

1 Answers1

5

What is needed to make serverside javascript work on Apache server?

You include mod_js in your httpd.conf and then write JavaScript

check this article to get started

Where can we get any information and samples about SSJS in Apache server?

This is a good answer on SO which talk about running nodejs on apache

Community
  • 1
  • 1
gurvinder372
  • 61,170
  • 7
  • 61
  • 75
  • How is it possible to setup reverse proxy on Apache Tomcat 9? I can not find httpd.conf file in tomcat installation - CATALINA_HOME directory. – Tornike Shavishvili Jan 05 '16 at 16:43
  • @blindprogrammer I think you are confusing between Apache web server and Apache tomcat. You need to download Apache web server to setup proxies. – gurvinder372 Jan 05 '16 at 17:16
  • @blindProgrammer okay, which link did you used to download apache server? – gurvinder372 Jan 05 '16 at 18:20
  • http://www.apachelounge.com/download/win64/binaries/httpd-2.2.31-win64.zip This one, above link is located here: http://www.apachelounge.com/download/win64/ As i understand, Apache wants that we compile server for windows ourselves. I installed the download and it seems to work. – Tornike Shavishvili Jan 05 '16 at 18:23
  • @blindProgrammer this seems to be fine. What is the issue now? – gurvinder372 Jan 05 '16 at 18:26
  • I in progress of setting up proxy. – Tornike Shavishvili Jan 05 '16 at 18:30
  • I am now in active process of developing web application that will use SSJS extensively. As i am inexperienced i have 3 questions: 1. What is web application structure(without SSJS), that should be deployed on Apache Web Server? Is there documentation available? 2. Which web server is thought to be most optimal to use with SSJS? 3. Is there any way to know programmatically when Apache Web Server and/or deployed application started/restarted? – Tornike Shavishvili Jan 06 '16 at 09:06
  • @blindProgrammer these are not small questions in their own right. Please raise them separately in three individual questions. – gurvinder372 Jan 06 '16 at 09:08