B4J Question [ABMaterial] delete .htaccess

FabioRome

Member
Licensed User
Longtime User
Good morning,
when I start the app.jar in the www folder the .htaccess file is deleted
 

MichalK73

Well-Known Member
Licensed User
Longtime User
This is a jetty server, not apache. There is no need for such a file in the ABMaterial server.
 
Upvote 0

MichalK73

Well-Known Member
Licensed User
Longtime User
Each time you turn it on, you can check what IP address it comes from and select it by IP. You write everything in code using the websocket property that returns the IP.
B4X:
ws.UpgradeRequest
It has an IP return method
 
Upvote 0

FabioRome

Member
Licensed User
Longtime User
Each time you turn it on, you can check what IP address it comes from and select it by IP. You write everything in code using the websocket property that returns the IP.
ok, I thought it could be done via webserver like apache
 
Upvote 0

MichalK73

Well-Known Member
Licensed User
Longtime User
You don't need any other web server for ABMaterial because it has its own built-in web server.
 
Upvote 0

MichalK73

Well-Known Member
Licensed User
Longtime User
One more idea came to me because you talked about .httacces. If you are using Linux as the environment for the ABMaterial server, then you can filter access by IP addresses through the system firewall to let IP data through to a given web server port.
 
Upvote 0

FabioRome

Member
Licensed User
Longtime User
One more idea came to me because you talked about .httacces. If you are using Linux as the environment for the ABMaterial server, then you can filter access by IP addresses through the system firewall to let IP data through to a given web server port.
I talked about .htaccess because I have multiple domains on the server and in each domain, based on what it is intended for, I have IP access rules.

Thank you for your precious time, I will come up with something or see if there are any further suggestions
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Upvote 0
Top