[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Help setting permissions in plesk or IIS

Posted on 2007-11-27
8
Medium Priority
?
2,109 Views
Last Modified: 2013-12-24
Hi

I have some websites on a server that is running IIS and Plesk

This sites are structured like this:

C:\Inetpub\vhosts\one-domain.com
C:\Inetpub\vhosts\another-domain.com
C:\Inetpub\vhosts\yet-another-domain.com

My problem is that I would like to upload a file to a domian from another. So a script can be executed in http://www.one-domain.com/script.php and then create a file on http://www.another-domain.com/new_file.jpg.

How do I do that?



0
Comment
Question by:koldstar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 37

Expert Comment

by:meverest
ID: 20362093
Hi,

allowing that kind of cross site scripting is potentially dangerous, but you can acheive this by:

1.  give modify permissions to the interactive user (i.e. authenticated or anonymous) to both web roots (as in using windows explorer security properties, or use cacls.exe etc)
2.  check 'allow parent paths' under application properties (click 'configuration' button on 'home page' panel of web site properties.

Cheers.
0
 

Author Comment

by:koldstar
ID: 20364785
Thanks,

But I can't get it to work. After setting "allow parent paths" I can go up one more level than before.

Before I could see: C:\Inetpub\vhosts\one-domain.com\httpdocs\ and now I can see C:\Inetpub\vhosts\one-domain.com\. But I still get the permission denied error when trying to access antother domain or C:\Inetpub\vhosts\.

Due to the security risk, I was thinking if it was better to make the other domains into subfolders to "one-domain.com."

Example:

C:\Inetpub\vhosts\one-domain.com\httpdocs\ customers\another-domain.com
C:\Inetpub\vhosts\one-domain.com\httpdocs\ customers\yet-another-domain.com

Is this a safer way? And how do I set this up?

/R




0
 
LVL 37

Expert Comment

by:meverest
ID: 20365123
Hi,

I'm not entirely sure that I understand exactly what you are wanting to achieve - perhaps if you explain what or why you want to do that, we might be able to think fo another way to achieve the same result?

I think that if I needed to do something like that, I would prefer to run a script every couple of minutes to copy from one folder to the other.

Cheers.
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

Author Comment

by:koldstar
ID: 20366093
Hi
The reason for all this is that I'm devolping a CMS. I would like the backend to be located on one domain and all the frontends on differents domains. I could solve the problem by uploading pictures and other files to the CMS-domain, but the customers webpage looks more professional when pictures are located on the same domain.
Another way to do this is to create a script that uploads the files through FTP, to the customers domain.. But I think this is a bit waste og resources and it requires me to make a special ftp-accound every time I add a new customer.
0
 
LVL 37

Expert Comment

by:meverest
ID: 20370329
Hi,

what about if you created a virtual 'images' folder under each web site.  so that:

www.somedomain.com/images maps to www.cms-site.com/application/imagedomain1

Cheers.
0
 

Author Comment

by:koldstar
ID: 20372281
That could work.

I just tried to create a virtual directory, but I can't set the path to another website in Plesk. It only allows paths like this: /httpdocs/images

I need it to go 2 folders "deeper".

Is there another way to change this? Maybe outside plesk?
0
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
ID: 20377293
Hello,

unfortunately, I am no plesk expert, but it certainly can be done using asp.NET and adsi.

take a look at this as a starter: http://www.iisfaq.com/Default.aspx?tabid=2709

regards,  Mike.
0
 

Author Closing Comment

by:koldstar
ID: 31411232
Hi

Sorry about the delay. I gave up and had a guy set it up for me...
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question