Can't connect remote jetty ajp service - jetty

How can I allow public access to jetty-ajp service? I am able to connect locally ajp://localhost:8009/ but not from a remote node using schema ajp://192.168.2.1:8009/ . I achieved it with port forwarding but want to know if there is an another way.
Thanks,

AJP is not supported by Eclipse Jetty.
If you must use Apache Httpd as a front end of Eclipse Jetty, know that the Eclipse Jetty project recommends using the mod_proxy services of Apache Httpd.
See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=425244
https://github.com/eclipse/jetty.project/issues/134
If you are running an older version of Jetty that had AJP support, know that all of those versions are now EOL (End of Life).
https://www.eclipse.org/jetty/documentation/current/what-jetty-version.html

Related

How to host a web page that was made using Wt(C++ Web toolkit)?

I have created a small project using Wt(C++ Web Toolkit). and I now want to host it.
Since there are very sparse resources for this, I read somewhere that LAMP is required for this(since I am using Linux). So after creating an Ubuntu instance at Digital Ocean, I installed my code in it with Apache2, MySql, and PHP. The Apache2 server is working, but it is used for hosting HTML/CSS/JS files. my web page is written entirely in C++.
I got directed to this website: https://www.webtoolkit.eu/wt/doc/reference/html/overview.html#wthttpd where it mentions "connectors" like libwthttp and libwtfcgi. I tried to install them using apt but I get this error: E: Unable to locate package libwtfcgi-dev (same for libwthttp).
The website mentioned above also does not provide clear steps for using these connectors.
I have also looked at other related answers : Host for Wt C++ web framework, deplowment issue but since I am new to web hosting, I would really appreciate a step-by-step guidance.
Even here: https://redmine.webtoolkit.eu/projects/wt/wiki/Fastcgi_on_apache The language is very unclear ast to where fastcgi.conf is located.
This answer assumes that you have the project running locally and just need to 'get it on the web'. You have a few options...
Reverse Proxy
From the tutorial it looks like there is a built in web-server. One option could be to use this, and then setup a reverse proxy (this can be done through Apache) to map traffic from yourwebsite.com to http://localhost:port, where port is whatever you started the web-server with.
The example they give to start the local webserver is:
$ g++ -std=c++14 -o hello hello.cc -lwthttp -lwt
$ ./hello --docroot . --http-address 0.0.0.0 --http-port 9090
here, port would be 9090.
Fast CGI
From the hello world and this thread it seems like a webserver setup with FastCGI may be able to do what you are looking for. Maybe this doc from Digital Ocean can help you get started?
It seems unlikely that you specifically need the full LAMP stack (Linux, Apache, MySQL, PHP) specifically for this. The doc you link does suggest that you need to link against the appropriate library for whichever approach you take, libhttpd or libwtfcgi, and you are correct that apt would be the place to get them on Ubuntu. This is a separate issue, but maybe this answer could be a starting point?
Is LAMP needed?
LAMP is definitely not required by Wt:
Linux is supported, but Windows too.
Apache could be used as a Reverse Proxy, but some alternatives may be even better (f.ex. HAProxy)
MySQL is supported, but also other database backends such as Postgres.
PHP/Perl/Python: not needed in any way.
Reverse proxy
Using a reverse proxy is a great way to deploy your Wt application (see eisaac's answer). If you already use Apache for other websites on your server. It's perfectly ok to use it as a reverse proxy. If you don't need all the features of Apache, using a HAProxy may be the better choice. See also some deployment configuration mentioned in the Wt docs:
https://redmine.emweb.be/projects/wt/wiki/Wt_Deployment
Easiest solution (but not scalable): let Wt directly listen on port 80 (or port 443)
If Wt is the only site running on your Ubuntu instance, you can also make it listen directly on port 80 (or port 443 in case of https):
./hello --docroot . --http-address 0.0.0.0 --http-port 80
See also the different command line options in the Wt doc: https://www.webtoolkit.eu/wt/doc/reference/html/overview.html#config_wthttpd

Deploying LB4 appplication on Apache server

I have tried deploying my Loopback 4 application on Apache running on a CentOS 7 server. I followed the instructions given here for Nginx but the proxy pass through is not working on Apache. Is there any documentation on how to deploy a LB4 application on Apache?
This is not a complete answer as there was no response on the equivilent GitHub issue to better understand the user requirements.
The official Apache 2 docs This should be a good starting point to mapping NGINX's configuration to Apache 2.

Map multiple domains to single karaf instance

I have created a server in AWS with Ubuntu installation. I have 3 domains with me. Now I want to host all three domains in that same server in the same Karaf instance. Just like we can do it in Apache Tomcat using Host tag in some configuration XML file.
I have already installed Karaf on the server, installed webconsole to test the configuration in the beginning.
Update
Due to the confusion factor, I am adding an image to explain what I want to achieve.
Karaf uses Jetty (assuming you've installed pax-http feature). Jetty is configured in your <KARAF_HOME>/etc/jetty.xml where you can add virtual hosts. Jetty's documentation regarding virtual hosts is here.

wamp server not working on 8.1

I just upgrade to win8.1 from win8 and I can't start wamp server (2.2 x64)
It was working fine on win8
Try checking that the Apache and MySQL services are still registered as services.
Look in Windows Services for services called - 'wampapache' and wampmysql'
Or if you have WAMPServer 64bit wampapache64 and wampmysqld64
If they dont exist do the following:-
wampmanager -> MySQL -> Service -> Install Service
wampmanager -> Apache -> Service -> Install Service
Then try to restart all services.
After Upgrading of window to window 8.1.
Please click on the wamp icon go to apache then services and then click on install services. And then go to mysql and services and click on install services and the restart your wamp. And enjoy your coding. Hurry
I've also gone through this situation. I checked the services and there "wampapche" and "wampmysqld" services are disable I've tried to start the services and the service didn't start stating a 1058 error. Then I changed the startup type from manual to automatic and now it's working.
all of your's answers are wrong, not only wampserver but also xampp is not working on windows 8.1 because apache server is not running in windows 8.1 with port 80, becouse port 80 is system reserved port.
#Ahmed that has been what described on the above posts. The simple answer is after upgrade we need to restart the services as they are stopped and yes it depends on the user whether they are going to keep it running or closed as they can choose whether to start manually or automatically.
Apparently Windows 8/8.1 are missing some essentials. The solution is to install Microsoft Essentials for Windows 8/8.1. This adds the .NET framework with all the necessary APIs that allow Wamp to function as designed. You can download Windows Essentials from herE: http://windows.microsoft.com/en-us/windows-live/essentials . I have already tested this out on several devices, including my laptop and desktop running both Windows 8 and 8.1. Good luck! :)

How to configure jetty bundle on virgo

My rap projects runs on an equinox jetty server. The bundles are started and I'm able to connect to it by going to localhost. Now I want to configure the equinox jetty bundle with some personal settings but I don't have a clue where to start.
Is there some way to configure it?
Thanks
In my memories, you have to make a Jetty fragment with an /etc/jetty.xml or default-jetty.xml file.