Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nobody Know How to do this!!!!

Status
Not open for further replies.

zick79

Technical User
May 19, 2003
40
CA
Hi


I install JSP and I manage to run the example test. So my question is:

a) how can I set up my virtual hostings let's say with JSP capabilities? Is is possible?
b)what are the steps with setting up Virt. Host. with JSP. Destail.

I was searching the whole not find anybody who know how to do this. thanks a lot you are genes.




Thanks guys/girls
 
Ok but how to set up Individual hosting in IIS to serve JSP pages? ------> his is the problem I am having. I manage to run examples by typing IP addres/examples/jsp/hellowWorld.jsp. How do I set up so the website that I am hosting will be able to run JSP from theirs Home directory or CGI-BIN or whatever is in their HOME dir. ANY idea guys?


Thanks

PS. If you know how to do this then you are good at least better than me, Thanks fellows.

Bye
 
Some more information would be useful;
Connection type;
Operating System;
Java Engine;
behind router or firewall;
fixed IP or Dynamic IP;

The more information provided in your post will enable a more informed answer to be given.

Chris.



Indifference will be the downfall of mankind, but who cares?
 
Ok

Still having the same problem, can not set up Virtual host in IIS 5 on Win 2000 Server, ADSL conection behind router, LinkSys 4 Port Router. JDK 1.4, Dynamic IP address,


Thanks for Helping me out
 
You are going to have to register with one of the dynamic dns providers, I use and set up either your own domain name (charged) or use one of their pre-registered names (free) as a virtual name, download and setup one of the client updaters to automatically re-register your IP when it changes.
You will need to allow traffic on port 80 through the router (read the manual) and then use host headers in IIS to point the traffic to the correct site.

setting up host headers has been discussed many times on here and the help in 2k server shows how easy it is.

Chris.


Indifference will be the downfall of mankind, but who cares?
 
Hi

I think you missunderstood my question, I asked: How to Set UP Virt. Hosts with JSP? Just so You Know (JSYK) I already manage the example with Default w host in IIS 5. Look for my computer features/specs above if you want to know.


I hope some one evently understand me, Is my english as that BAD?


Thanks
 
Ok I'm really not with this then,
Do you want to;

A/ create the site\virtual folder by using JSP code pages so someone can create their own site,

B/ create individual sites that can execute JSP code,



Chris.




Indifference will be the downfall of mankind, but who cares?
 
Hi

it is B

I want to set up Like I said before I virtual Host - If you don't know what is virtual Host than stop reading further. If you do than, I want to set up each individual virtual host in IIS 5 (specs above) to serve JSP pages for each virtual site/host. I hove I am clear enaugth.


Thanks for your help anyway.

 
Ok, I know what a virtual host is,
I am trying to narrow down your problem, you are not helping by repeating the question, the only thing I have to work with is your information, I do not know anything about your system unless you tell me.
For instance;
You have not said what Java Engine you have installed,
is it Tomcat, Sun ONE, Macromedia JRUN or something else?

with Tomcat you have to set up the redirector,

JRUN and Sun ONE should configure the ISAPI types on installation

JDK 1.4 is not (AFIK) a server rendering engine, It is (as the name implies) a development kit.

also read this thread thread41-416453

If you have a JSE installed and configured all sites\virtual hosts can be JSP capable.

Chris.


Indifference will be the downfall of mankind, but who cares?
 
Ok Great I works BUT!


Now from each domain I can get it to work the jsp examples but my question now is, how do you set up user FTP home directory so he/she can upload jsp pages, and not haveing saparate c:/inetpub/GregHOME/ user home dir. PLUS a folder somewhere else for JSP. How to combine them all in one user directory. ??????????


Please give me a clue.


Thanks guys and girsl
 
Under the FTP Site you create a virtual folder for each user and point the home directory to the top level of the users site. Then create a user name on the server with the same name as the virtual folder, make sure anonymous access is unchecked, and when anyone connects to ftp://yourdomain.xxx they will be prompted for a username & password, if they enter the appropriate username and password their access will be from the virtual folder for their site.

This is the way I have mine set up.

Websites
|
|--user1 FTP for user1 points here
| |
| |--logs
| |
| |--www website for user1 folders
|
|--user2
| |
| |--logs
| |
| |--www

and so on. This gives the user full access to logs and all site folders.


Chris.


Indifference will be the downfall of mankind, but who cares?
 
Thanks man

Yea, mine is set up similar way BUT take a look at the below graph.

FTPRoot
|
|----Jurek
| `----- | `---CGI-BIN
| ` `----myperlscripts
| ` `----myjsppages
| ` `----myaspages
| `
| `---MyPicture
| `---XFolder
|
|
|------Bob
`----- `---CGI-BIN
` `----myperlscripts
` `----myjsppages
` `----myaspages
`
`---MyPicture
`---XFolder


My Question is, actualy I have 2 questions,

1) How do I set up the permissions on the and assummin the Path ic c:\FTPRoot with inheritance permisions for Everybody FULL CONTROL starting from C: drive, so that (THIS IS THE MOST IMPORTANT NOW) my client Jurek and Bob won't be able to delete theirs and folders and could read write to it, and the same with CGI-BIN folder, I don't want them to be able to delete it. So whenever I have a new user, he/she will start of with that Skeleter folder permissions.



2) How do I HOOK up jsp folder in each of these 2 users with Tomcat JSP WEB-INI folder, so they can upload JSP page in their ftp home directory, and they would run from there.??


Ok ok, i know I ran to far, I know, Hope you guys/girls help me a bit with this 2 problem, I you need more info just ask.

Thanks folks

Stay tune I will come back in about 3 hours East Time now is 4:45PM

Bye
 
First of all and MOST important remove any permissions that the Everyone group has especially FULL CONTROL. This is a serious security risk. The Everyone group SHOULD NOT have any permission to any shares or folders especially on a publicly accessible server. If as you say Everyone has full control from the root upwards this means that ANY user can perform any action they wish to the entire drive including the %systemroot% folder and this is possible by using simple commands to connect to the drive, also make sure the Auto created admin shares are removed C$, D$ etc, this again is a major security risk.

for point 1/
Make a group up for webusers and assign the permissions you want to to the FTP root folders for this group, then your new users are added to this group by default.
Your create site\user script will need to handle this, unless you do this manually. You should never assign explicit or implicit permissions on a drive\folder\file to a user always use a group.

Be aware that what you ask for, eg deny delete, will prevent these users from replacing files on upload also, so you will be limiting the users to the files that are provided by the system administrator.

Looking at the questions you have asked you seem to be approaching this with insufficient knowledge of server and user administration especially from a security point of view and I would suggest that you work on gaining some knowledge and securing your system before you find your server has been compromised.



Chris.


Indifference will be the downfall of mankind, but who cares?
 
Hi


Firs of all the permisions that I use said I have I used as an Example, so Relax, second of all if you could tell me how do you get folder EX.!!!!!!!! C:\Tomcat\WEB-Init\Jsp\calculator folder in user FTP root dir.? Should I user mapping script while use logs into the FTP root directory or something else? What Are the alternatives?


Thanks a lot
 
I'm relieved to hear that.

I don't use Tomcat as yet but there is a dedicated Tomcat Forum forum877 You will have more chance of a qualified answer by posting your question in there.


Best of luck


Chris.




Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top