473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Access Local subdomain through a local computer on the network

omerbutt
638 512MB
Hi
i have a problem that i have two local sub-domains

fcsuk.localhost
fcsusa.localhost

setup perfectly ,i have configured each one in httpd.conf and added the information in the HOSTS file located in
C:\WINDOWS\system32\drivers\etc\ by adding the following lines
Expand|Select|Wrap|Line Numbers
  1. 127.0.0.1       fcsusa.localhost
  2. 127.0.0.1       fcsuk.localhost
  3.  
now the problem comes when i try to run the site from another local computer on the network from my local machine where i installed xampp all works fine , i can access the uk version of the site by writing http://fcsuk.localhost which is mapped with the respected folder of the site , and viseversa for the usa version , i have configured the virtual host by using

Expand|Select|Wrap|Line Numbers
  1. NameVirtualHost *:80
  2.  
  3. <VirtualHost *:80>
  4. DocumentRoot D:/xampp/htdocs/ews/projects/free-call-schedule/live-replica
  5. ServerName fscusa.localhost
  6. </VirtualHost> 
  7.  
  8. <VirtualHost *:80>
  9. DocumentRoot D:/xampp/htdocs/ews/projects/free-call-schedule/live-replica
  10. ServerName fscuk.localhost
  11. </VirtualHost> 
  12.  
  13. <VirtualHost *:80>
  14. DocumentRoot D:/xampp/htdocs/
  15. ServerName localhost
  16. </VirtualHost>
  17.  
  18.  
all these three options help me to differently map the the 2 versions and also to maintain my localhost default path , now i wanted to access the same scenario from another local computer on the network , i tried to replace the

fcsusa.localhost with fcsusa.10.10.10.104 in the address bar didnt worked

fcsusa.localhost with 10.10.10.104.fcsusa in the address bar didnt worked

and when i tried to access the localhost of that computer and wrote http://10.10.10.104 it forwarded me to the USA version where as it should have browsed the xampp of the computer and switching the url to something like

"http://10.10.10.104/xampp"

so first of all i tried to make the localhost of that computer to be accessible from the other computers on the network, and to make that work i did the following

added the following line in the HOSTS file
Expand|Select|Wrap|Line Numbers
  1. 10.10.10.104    localhost
  2.  
and added the following lines in the httpd.conf
Expand|Select|Wrap|Line Numbers
  1. <VirtualHost *:80>
  2. DocumentRoot D:/xampp/htdocs/
  3. ServerName 10.10.10.104
  4. </VirtualHost>
  5.  
and it started working correctly , now i tried the same way to define the 10.10.10.104.fcsusa the same way on both files and tried to access it from another computer on the network but nothing works for this part , i do not want to write the full path to access the application from another computer , would like to use my virtual path here too ,i appreciate your help in advance
regards,
Omer Aslam
Jun 13 '11 #1

✓ answered by omerbutt

done ,
you need to add the domain name on the other computers hosts file located in the windows/system32/drivers/etc/, and everything works like a charm
Regards,
Omer Aslam

1 6481
omerbutt
638 512MB
done ,
you need to add the domain name on the other computers hosts file located in the windows/system32/drivers/etc/, and everything works like a charm
Regards,
Omer Aslam
Jun 14 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: karim | last post by:
My computer (connected to a domain) is having trouble connecting to the local MSDE when using 'local' or '(local)' as server name. The only way I can connect through DTS in Enterprise manager is...
8
by: Stephen K. Young | last post by:
If you have not seen it, this recent Microsoft Knowledge Base article is worth reading: http://support.microsoft.com/kb/889588 "How to optimize Office Access and Jet database engine...
1
by: schneider | last post by:
Is it possible to get access to the local resource (App_LocalResources) of an aspx page from within a user control located somewhere else? I have created a user control which I want to add to a...
1
by: ashok1986 | last post by:
hi every one i had developed a vb.net application. I tried to access through a remote computer but i get an error like this plz any one help . "Application attempted to perform an operation not...
26
by: Tomás Ó hÉilidhe | last post by:
Has anyone here got access to a ridiculous computer? Something like: CHAR_BIT == 9 PADDING_BITS(int) != 0 NUMBER_SYSTEM == SIGN_MAGNITUDE Null pointer bit pattern == All ones I'm writing...
3
by: SyGC | last post by:
Hi People, Im trying to do a simple Loop where by an IP address is pinged (Using My.computer.network.ping) and the results, true or false, are used to invoke another line of code. Basically if...
5
by: SyGC | last post by:
Greetings All, I have established a working Remote Connection to a MySQL DB using ODBC which allows me to select data in a Datagridview in my Form. The data is a list of IP addresses. What i want...
5
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am trying to accesss a Mapped Drive from my asp.net code running on IIS 6.0. I am using a FileUpload control and fileUpload.SaveAs() to save the file to the server. I want to save the file to...
2
by: Jerry Spence1 | last post by:
In VB2005 (.NET 2.0) when I do: my.computer.network.uploadfile I get the error "The requested FTP command is not supported when using an HTTP Proxy" Is there any way round this? Does this...
3
by: limperger | last post by:
Hello! This is quite important. We have an Access file shared in a network. Every user has its front-end copy that is linked to a back-end copy. This database has an autonumber field to count...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.