Deep Nair

Greenhorn
+ Follow
since Dec 24, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Deep Nair

Hi,

I have a requirement to remove the use of tables and replace the code with html lists (ul, li). The html code to be replaced is as below



Tried multiple options using lists (ul, li) but could not achieve this display. The text on the right always went below the image using lists, I wanted the vertical text list (name, then age, then city) to be adjacent to the image i.e. the list should produce the same shape as produced by the above table.

Please let me know how this can be done via CSS with html lists.

Thanks,
Deepna
Tim, I had configured my proxy as below i.e with ProxyRequests On which in one way makes my Apache Proxy as a Forward Proxy. Also I had an "Allow from all" so everyone had access to hit and use this as a "Forward Proxy"


Now to fix the issue - will the below two steps suffice i.e
-- Convert the Forward Proxy to Reverse Proxy i.e. by setting Proxy Requests to Off
-- Setup Allow from a particular url name
The code will look similar to below


Will this work to make the Server secured ?

Thanks,
Deepna
12 years ago
Also one more learning from my experience is that change the generic port 8080 to some other port thats not "generic" enough for other to sniff and use your proxy.
12 years ago
You can use Apache as a proxy to your Tomcat Server, refer to the below URL
https://coderanch.com/t/562641/Tomcat/Resolving-website-name-correctly-Tomcat

Also make sure before you enable your proxy, the server is well secured, to start off with set the below in your Proxy Control block of Httpd file


Change "Allow from 192.168.0" to your ip.

Thanks,
Deepna
12 years ago
Philip - I used a proxy so that later on I can turn this proxy to a firewall proxy but in my initial setup - i did a mistake of not making it secure.
Tim- yes I need to check the logs in Apache, I understand the default path is

Thanks,
Deepna
12 years ago
Hi - I have a linux server configured with a major cloud service provider and I had installed a web app on Tomcat Server and also configured Apache as a proxy at port 8080 for my web site. Just yesterday when i logged into my cloud account, i found that the total bandwidth in and out is about 90GB though i had never used this much GB. When I inquired with the clould support folks they told me the below

It looks like you have port 8080 open as a http proxy Someone probably found that and has been using that.



What does this mean ? How can someone else use my apache server's port 8080 for their purpose ? How can i prevent this ? I have stopped my server at this point to avoid further misuse.

Please suggest.

Thanks, Deepna
12 years ago
Hi Tim - I just had a look at "DisplayTag" library, but that looks more like a jqGrid i.e. with columns and rows, what I'm looking for is like a list - something like in this forum where all replies are listed in order one below another + paging functionality added to it i.e. if the replies go more than say 10, page navigation should be enabled.

Thanks,
Deepna
Hi,

I have a requirement to generate something as below i.e. a list of items in the below format with paging enabled. I can do this via the normal html and paging concepts but is there a plugin available (e.g. jquery) to get this done ? Please point me to the link or example if any.



Thanks,
Deepna
Thanks Rob for your inputs !! yes clearing cache solved the issue...

Thanks,
**
12 years ago

Is there perhaps also an index.php in the same folder?


No there is no index.php in the same folder.

Also one more thing i have noticed is in IE if i type www.mywebsitename.com it resolves to the www.mywebsitename.com/SYL so its working in IE, but in Firefox its not working, in Firefox its still shows the Apache home page. So the index.html that you gave me earlier, does that need to be changed for Firefox compatibility ?

What happens if you go to www.mywebsitename.com/index.html?


I tried this in Firefox and its resolving to www.mywebsitename.com/SYL properly.... so not sure where the issue is.

Thanks,
deepna
12 years ago
Thanks for the details, tried with the html option but could not make it work. In the httpd conf i can see the doc root set as var/www/html so created index.html and placed in html dir and restarted apache but didnt see any changes....not sure why its not working ...
12 years ago
Thanks Rob for the details, I'm using centos linux server, so i dont see the folder htdocs. How can i set it up in Centos ? Also im not using PHP, but JSP, is there a JSP plugin similar to PHP that needs to be enabled ?
12 years ago
My httpd file in Apache as proxy looks like below:


In Tomcat, my server.xml looks like below:


What's happening is that, in the browser, when I type www.mywebsitename.com, it shows only the Apache Welcome page but when I type www.mywebsitename.com/SYL, it shows the website welcome page.

What I want is that the www.mywebsitename.com should resolve to www.mywebsitename.com/SYL, so that the general user need not type /SYL in url. Please suggest.

Thanks,
Deepna
12 years ago