Skip to content

RedHat on port 80

I got Apache Tomcat running some app on RedHat server, now listening on port 8081. I want the app to listen to port 80, but not working. My RedHat server not using firewall so iptables has no relavance. How can i make it work? Here is my server.xml: Answer Ports below 1024 can only be opened by a root user.

Postfix: which option for multiple domains and multiple users?

Our server will have three domains: example.net, example.org, and example.nl. For each, the info@… and webmaster@… should be working (but can be shared / forwarded to one). For the .org and .nl domains those will be the only users. For the .net domain there will be a few dozen users. The .net doma…

Image upload using curl

I want to upload image to remote site using curl cli version, i browse several pages here, but not able to solve my problem. I log http header in firefox while uploading image: Answer The basic curlsyntax would be curl -F “image=@/yourPath/yourImageFile.jpg” ‘https://www.site.xxx/upload_pr…

find indices of duplicate floats in a list

I have an input of a very large list of floating point numbers, a sample is given I want to find all the duplicates and their index i.e. location in the list. The duplicates will only occur as a pair; never more than twice. The output should be like so there are just two entries 1.2 and 3.1 which occur

Organize file by Linux

I want to thank the great help and support. Well, I have the following file: and I need that file be this way: Please, someone can help me? Thank you very much Answer awk to the rescue!