I am trying to learn IIS on my Windows 10 machine, and I watched a tutorial (for a previous version) on which they create a new Website, specify the directory, and they can open the site in the browser.
So I decided to try: At first, I tried to create a new folder in C:\inetpub, but it was giving me headaches with administrative permissions required just to create the directory! So I created a folder in my "D" drive, and put a single "index.html" there, but when I want to open the site, Chrome gives me ERR_CONNECTION_TIMED_OUT.
I tried modifying the security of the folder to include IIS_IUSERS, but the problem still exists.
Any kind of help is appreciated
Related
I have a two webservers, on each webserver in the C:\inetpub\logs\LogFiles I have created a symbolic link to the other servers log file folders, so essentially I can be logged in to one of the webservers and see the logs on both servers in one place. This works perfectly.
I am building a webpage to make the log files available via a webpage, the code simply goes to the C:\inetpub\logs\LogFiles directory and lists the files in each sub folder, i.e. W3SVC1 (the local folder) and webserver2-w3svc1 (the remote log folder).
For the local folders it works fine, but I am getting the "access denied" error when trying to call Directory.GetFiles on the symlinkd folder. I suspect this is some sort of permissions error, but I tried giving the symlinkd folder full permissions to "everyone" but I still get the same error.
Is this something to do with the fact that when I created the symlinkd I had to enter the username and password of the webserver2, and these credentials cannot be accessed/used by IIS when trying to get access to the folder?
Is there anything I can do allow IIS to access the contents of this symlinkd folder?
I don't think you need to use a symlink, you can create a virtual directory mapping to that directory in IIS, just map it to the target path. In IIS, right click on the website and select Add Virtual Directory.
For more information, please refer to this official document.
After much experimentation, the only way to do this is as follows:
Create a new user on the computer.
Run the AppPool in IIS under this new users' identity as opposed to the default IUSR account.
Give the folder you are sharing permissions to this user AND 'share' this folder with the new user.
I've created a new web site in IIS on my machine for testing purposes. Beneath the root I have a folder called documents where I have a bunch of pdf's that should be downloadable. However, when I hit the URL localhost:54510/documents/file.pdf I get a 404 error (Chrome, IE and Firefox).
I've added IIS_IUSRS permissions for the specified folders and the service is running since I can access my ASPNET WebApi - localhost:54510/api/whatever-service-function.
I can't grasp my head around what causes this.
PDF is specified in MIME-types as Application/pdf.
Another thing is, when I add the documents folder as a virtual directory in the Default web site then it works to download it from localhost:80/documents/file.pdf.
I have also tried to add the documents folder as a virtual directory in my web-site and set my local user as the authenticator to see if it had anything to do with permission.
I'm running on IIS 10.
Does anyone have any ideas?
My problem is as follows, I am running a website on a window server. The websites are located in the following directory. 'c:/inetpub/wwwroot/'.
The c drive has become very full recently as one of the websites allows the user to upload files to this location 'c:/inetpub/wwwroot/mywebsite/recordings/'.
I would like to move this recordings folder the e drive on the server which has lots of space 'e:/mywebsite_data/recordings/'
I created this folder and have moved the files to there new location on the e drive.
My problem is I cannot create a hyper link to the files on this new location. I have tried this href below but obviously this is looking for a file on my own workstation.
Recording
Any suggestions?
Thanks
You can solve your problem by creating a virtual directory
Creating Virtual Directories in IIS 6.0
Here is an article on how to do this in IIS7
Understanding Sites, Applications, and Virtual Directories on IIS 7
You can use IIS' virtual directories: https://web.archive.org/web/20110318232846/http://support.microsoft.com/kb/172138
With them you can place external folders in your website (it's like an include).
Update:
Another tutorial: http://msdn.microsoft.com/en-us/library/zwk103ab.aspx
I'm using multiple computers for development and I want to be able to store my files in my dropbox folder. I went to change the physical path in IIS from c:\inetpup\wwwroot to the dropbox folder but I get this error:
The requested page cannot be accessed
because the related configuration data
for the page is invalid.
I couldn't find the config file so I was wondering if anyone had done this before or whether there a better way to sync everything nicely across several PCs?
I tried it (IIS 7.5, Win 7) and it should work just fine to let your physical path of your web look at your dropfox folder. I would guess your web.config file generally contains malformed XML (see KB942055).
I'd suggest, try to map it to an empty folder just with an index.html file and see if this error still occurs.
As a workaround, I guess you can put Dropbox in your wwwroot folder and set up a virtual directory that points to Dropbox. However, there are some security issues that may hinder you from doing so. I come across a nice tutorial on how to set up Dropbox to IIS as FTP Publishing. Hope it helps.
Hodgin's guide on using Dropbox as FTP publishing.
I am trying to setup drupal to host multiple sites which will not effect each other. My pages are hosted on a shared hosting service and I only have access to cPanel.
Following the instructions on the web that I found using google, I have done the following.
Installed Drupal.
Make a directory in sites and name it demo.sharedhost.com.
Copied default.settings.php in that directory and renamed it settings.php.
Created a subdomain demo.
Deleted the demo folder from public_html
Made sybolic link public_html/demo to sites/demo.myshost.com.
When I try to access demo.myhost.com I get listing of sites/demo.myhost.com directory instead of drupal installation.
Can you please help me setup multisites?
Thank you.
Finally I found the answer. In 6th step I made a symbolic link to drupal_installation/sites/demo.myhost.com, these instructions are wrong on the internet. The sybolic link should be targeted to drupal_installation path.
So here is my final steps:
Installed Drupal in ~/public_html/drupal_path.
Make a directory in ~/public_html/drupal_path/sites and name it demo.myhost.com.
Copied default.settings.php in ~/public_html/drupal_path/sites/demo.myhost.com directory and renamed it settings.php.
Created a subdomain demo.myhost.com.
Deleted the demo folder from public_html, which was created automatically.
Made sybolic link as follow:
ln -s ~/public_html/drupal_path ~/public_html/demo
Note: If you do not have access to shell then use the following php script to make the symlink:
<?php
exec("ln -s ~/public_html/drupal_path/ ~/public_html/demo");
?>
Finally visit the demo site by http://demo.myhost.com and you will be prompted for new drupal installation.
I am explaining the steps again so someone like me will not have to waste time reading different solutions posted on the internet.
Please let me know if something is not clear.
Multi Site in Drupal
You need to make sure first if the server supports virtual hosts or not ,
You have not created the database for sites , follow that link for this,
If all went well till now to install another site you shouldnt access
demo.myhost.com
instead try this
demo.myhost.com/install.php