473,788 Members | 2,848 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using absolute paths in Include virtual (multiple web servers)

I have setup Software Update Service servers at two locations in our
company (SUSserver1 and SUSserver2). I am modifying the web interface
on one server so that it will allow me to control both servers from
page. The problem I'm running into is that the synchronize and approve
functions are both .asp pages that use 'include virtual=' statements.
When i activate the link on SUSserver1 that should allow me control
SUSserver2 the link actually takes me to SUSserver1 due to the
relative path used in the include. see below:

synchronize.asp
=============== ====
<!-- #include virtual="autoup date/administration/shared/inc/synchronize.inc "-->
Since this link is coming off the default.asp (and more correctly the
toc.inc) on SUSserver1, it takes that virtual path to be on
SUSserver1. I'd like to modify this path so that it looks to
SUSserver2.

File structure

\\SUSserver1
|
|
----C:\inetpub\wwwr oot\autoupdate. ..
\\SUSserver2
|
|
----C:\inetpub\wwwr oot\autoupdate. ..

Thanks for any insight.
Jul 19 '05 #1
2 3228
Include directives, either virtual=, or file=, need to be paths within the
website in question. You can supply a UNC path, or a physical path.

Cheers
Ken
"hawks5999" <ha*******@yaho o.com> wrote in message
news:ac******** *************** ***@posting.goo gle.com...
: I have setup Software Update Service servers at two locations in our
: company (SUSserver1 and SUSserver2). I am modifying the web interface
: on one server so that it will allow me to control both servers from
: page. The problem I'm running into is that the synchronize and approve
: functions are both .asp pages that use 'include virtual=' statements.
: When i activate the link on SUSserver1 that should allow me control
: SUSserver2 the link actually takes me to SUSserver1 due to the
: relative path used in the include. see below:
:
: synchronize.asp
: =============== ====
: <!-- #include
virtual="autoup date/administration/shared/inc/synchronize.inc "-->
:
:
: Since this link is coming off the default.asp (and more correctly the
: toc.inc) on SUSserver1, it takes that virtual path to be on
: SUSserver1. I'd like to modify this path so that it looks to
: SUSserver2.
:
: File structure
:
: \\SUSserver1
: |
: |
: ----C:\inetpub\wwwr oot\autoupdate. ..
:
:
: \\SUSserver2
: |
: |
: ----C:\inetpub\wwwr oot\autoupdate. ..
:
: Thanks for any insight.
Jul 19 '05 #2
That should be "You can't supply ..."

Cheers
Ken

"Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
news:ep******** ********@tk2msf tngp13.phx.gbl. ..
: Include directives, either virtual=, or file=, need to be paths within the
: website in question. You can supply a UNC path, or a physical path.
:
: Cheers
: Ken
:
:
: "hawks5999" <ha*******@yaho o.com> wrote in message
: news:ac******** *************** ***@posting.goo gle.com...
: : I have setup Software Update Service servers at two locations in our
: : company (SUSserver1 and SUSserver2). I am modifying the web interface
: : on one server so that it will allow me to control both servers from
: : page. The problem I'm running into is that the synchronize and approve
: : functions are both .asp pages that use 'include virtual=' statements.
: : When i activate the link on SUSserver1 that should allow me control
: : SUSserver2 the link actually takes me to SUSserver1 due to the
: : relative path used in the include. see below:
: :
: : synchronize.asp
: : =============== ====
: : <!-- #include
: virtual="autoup date/administration/shared/inc/synchronize.inc "-->
: :
: :
: : Since this link is coming off the default.asp (and more correctly the
: : toc.inc) on SUSserver1, it takes that virtual path to be on
: : SUSserver1. I'd like to modify this path so that it looks to
: : SUSserver2.
: :
: : File structure
: :
: : \\SUSserver1
: : |
: : |
: : ----C:\inetpub\wwwr oot\autoupdate. ..
: :
: :
: : \\SUSserver2
: : |
: : |
: : ----C:\inetpub\wwwr oot\autoupdate. ..
: :
: : Thanks for any insight.
:
:
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4669
by: JStrummer | last post by:
I have a question regarding paths and the include() statement in PHP. I develop in a Windows environment and will be publishing to a Linux server. I would like to do the following: 1. Setup my include references in such a way that I don't have to change them all every time I have to publish to the production server 2. Setup above in such a way that won't involve php.ini (& LInux equivalent), as I have access to edit this file...
9
3701
by: Stuart | last post by:
Hi All, I got a challenge to make the same APS/Script/Html run on different web roots. I can not use relative pathing in a lot of cases. We use lots of included files so depending on where that file is running, the pathing in those included files varies. So we do a lot of absolute pathing. Example: Instead of Mappath("../../../_scripts/menu/mymenuscript.js") we use mappath("/_scripts/menu/mymenuscript.js"). In one case, the code is...
0
1242
by: Jason Moore | last post by:
I am trying to setup an asp.net web application without using a virtual directory, but when I do, the IDE forces me to use absolute paths so I cannot use root relative paths. Is there a way to setup IIS so that you can use root relative paths without including the name of the virtual directory?
4
4157
by: Rob | last post by:
I have a web project that has multiple directories. Some of the files in different directories use the same include files. The problem is that these include files also reference an image folder. I am trying to create an absolute reference to these images so I don't have to make the same include for different directories. What is the best way to do this? Thanks.
2
1200
by: David Cho | last post by:
This is a simple issue I am trying to figure out. How would I express absolute paths to various aspx files in the aspx page. I am not intereted in relative paths. For example, I want to encapsulate a HyperLink control in a user control. Of course this user control can go anywhere vin various subfolders, but when the link is clicked, I would like to set NavigateUrl to a the same target page. So a rlative path won't work. Thanks.
11
2270
by: MBS | last post by:
I am playing around with some PHP code. I want to put in an include() function so I can include existing HTML code and output it to the browser. Lo and behold PHP does not support relative paths with the include() function! (How shortsighted can you get?) Is there any way at all to use relative paths with include()? Any hacks? If I use an absolute filepath, everything is fine. But I don't want to do that--I can't do that. I want...
19
5113
by: Jerry M. Gartner | last post by:
Greetings: What is the best way to resolve paths within a document regardless of what path it is opened under? For example: I have x.php and it contains <img src="images...">, (amongst other things, like php code), which resolves the correct image path when opened under / but when x.php is read into a file under /dir the image no longer resolves, for obvious reasons. With absolute paths, this isn't an issue but it is with relative...
10
18920
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!-- #include virtual="/includes/file2.asp" --> <!-- #include virtual="/includes/file3.asp" --> <!-- #include virtual="/includes/file4.asp" --> <!-- #include virtual="/includes/file5.asp" -->
5
4585
by: chris_peoples | last post by:
I have a virtual directory, lets say it exists at www.server-a.com/virtual-dir/ virtual-dir points to another directory on another server using the unc path: \\server-b\main-dir I have a file at www.server-a.com/virtual-dir/some_script.asp, using the following include: <!--#include file="some_include.asp"---> Going to www.server-a.com/virtual-dir/some_script.asp works perfectly fine
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.