Server Side Javascript On Apache Server

20,353

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

Share:
20,353
Tornike Shavishvili
Author by

Tornike Shavishvili

I live here :)

Updated on July 05, 2022

Comments

  • Tornike Shavishvili
    Tornike Shavishvili almost 2 years

    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
    Tornike Shavishvili over 8 years
    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.
  • gurvinder372
    gurvinder372 over 8 years
    @blindprogrammer I think you are confusing between Apache web server and Apache tomcat. You need to download Apache web server to setup proxies.
  • gurvinder372
    gurvinder372 over 8 years
    @blindProgrammer okay, which link did you used to download apache server?
  • Tornike Shavishvili
    Tornike Shavishvili over 8 years
    apachelounge.com/download/win64/binaries/httpd-2.2.31-win64.‌​zip This one, above link is located here: 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.
  • gurvinder372
    gurvinder372 over 8 years
    @blindProgrammer this seems to be fine. What is the issue now?
  • Tornike Shavishvili
    Tornike Shavishvili over 8 years
    I in progress of setting up proxy.
  • Tornike Shavishvili
    Tornike Shavishvili over 8 years
    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?
  • gurvinder372
    gurvinder372 over 8 years
    @blindProgrammer these are not small questions in their own right. Please raise them separately in three individual questions.