Overclock.net › Forums › Specialty Builds › Servers › symbolic links in webserver
New Posts  All Forums:Forum Nav:

symbolic links in webserver

post #1 of 6
Thread Starter 
I just recently finished setting up my webserver using Apache, but my problem is that i want to go to folders outside my document root. In the Apache config file it mentioned using symbolic links to achieve this goal. Unfortunately i have been unable to find how to create these "symbolic links" in windows xp(the os Apache is running on). If you could tell me how to create symbolic links or if there is a better way to achieve what i am try to do i would be most appreciative.
The Computer
(13 items)
 
  
CPUMotherboardGraphicsRAM
E8400 3.8Ghz Gigibyte Ga-EP35-DS3L Evga 7600Gt 2gb (2x 1Gb) 
OSMonitorPowerCase
Windows Xp 19" Viewsonic Lcd 17" Compaq CRT 400W Enermax Powerspec 
  hide details  
Reply
The Computer
(13 items)
 
  
CPUMotherboardGraphicsRAM
E8400 3.8Ghz Gigibyte Ga-EP35-DS3L Evga 7600Gt 2gb (2x 1Gb) 
OSMonitorPowerCase
Windows Xp 19" Viewsonic Lcd 17" Compaq CRT 400W Enermax Powerspec 
  hide details  
Reply
post #2 of 6
I'm honestly not sure if there is an equivalent to the symbolic link in Windows - its predominantly a linux/unix thing.
Morpheus Mini
(7 items)
 
  
CPUMotherboardGraphicsRAM
i7-6700T SN970 GTX 960 Crucial CT102464BF160B 
Hard DriveOSAudio
Samsung 850 Evo M.2 Windows 10 Pro MOTU Audio Express 
  hide details  
Reply
Morpheus Mini
(7 items)
 
  
CPUMotherboardGraphicsRAM
i7-6700T SN970 GTX 960 Crucial CT102464BF160B 
Hard DriveOSAudio
Samsung 850 Evo M.2 Windows 10 Pro MOTU Audio Express 
  hide details  
Reply
post #3 of 6
Thread Starter 
Hmm, well if i cant use symbolic links then i guess i could try to solve the problem that caused me to have to resort to symbolic links.

When i initially configured Apache i was under the impression that i could have more than one document root, so i attempted to set my document root to something like this.
Code:
DocumentRoot "D:\\"
DocumentRoot "f:\\"
This was unsuccessful, so my next step was to reduce it down to one document root.
Code:
DocumentRoot "D:\\"
When that didn't work i tried reinstalling Apache, at which point i receved a error messege which said something along the lines of you must have your document root point to a folder. I found it peculiar, but when i change my document root to this
Code:
DocumentRoot "D:WebsiteLocalHost"
Finaly it was working. Now is there any way to set my document root to the root directory, ie "D:\\"?
The Computer
(13 items)
 
  
CPUMotherboardGraphicsRAM
E8400 3.8Ghz Gigibyte Ga-EP35-DS3L Evga 7600Gt 2gb (2x 1Gb) 
OSMonitorPowerCase
Windows Xp 19" Viewsonic Lcd 17" Compaq CRT 400W Enermax Powerspec 
  hide details  
Reply
The Computer
(13 items)
 
  
CPUMotherboardGraphicsRAM
E8400 3.8Ghz Gigibyte Ga-EP35-DS3L Evga 7600Gt 2gb (2x 1Gb) 
OSMonitorPowerCase
Windows Xp 19" Viewsonic Lcd 17" Compaq CRT 400W Enermax Powerspec 
  hide details  
Reply
post #4 of 6
ok firstly in windows you need to use a "/" in your paths instead of a "\\" so D:/ instead of D:\\ . Next windows cant do the symlink thing. The next best thing is to use mod_alias.
Heres a link on how to configure mod_alias. http://httpd.apache.org/docs/2.0/mod/mod_alias.html
Here's the basic configuration though.
Quote:
Alias /image /ftp/pub/image
<Directory /ftp/pub/image>
Order allow,deny
Allow from all
</Directory>
(/image is the url and /ftp/pub/image is the folder you are aliasing.)
You may or may not need the Directory directive depending on your situation.
My Baby
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 EVGA 680i 122-CK-NF68-A1 EVGA GeForce 8800 GTS 640MB SLI 2x2GB Corsair Dominator 1066 CM2X2048-8C500C5D 
Hard DriveOptical DriveOSMonitor
WD SATA 1.5Gbps Raptor 74GB 2x LG SATA DVD-RW XP SP3 Dell 2407WFP 
PowerCase
Silverstone Strider 750W Lian Li Something or other 
  hide details  
Reply
My Baby
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 EVGA 680i 122-CK-NF68-A1 EVGA GeForce 8800 GTS 640MB SLI 2x2GB Corsair Dominator 1066 CM2X2048-8C500C5D 
Hard DriveOptical DriveOSMonitor
WD SATA 1.5Gbps Raptor 74GB 2x LG SATA DVD-RW XP SP3 Dell 2407WFP 
PowerCase
Silverstone Strider 750W Lian Li Something or other 
  hide details  
Reply
post #5 of 6
There is Windows Services for UNIX: http://technet.microsoft.com/en-us/i.../bb380242.aspx
Install it and execute 'ln -s original_folder symlink', might work.
1+8
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Celeron G530 AsRock H61M-VS ASUS 8800 GS 384MB 2x2GB DDR3 1333MHz 
Hard DriveOSMonitorPower
WD Caviar Blue 500GB Gentoo Samsung 226BW HiPro 480W 
  hide details  
Reply
1+8
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Celeron G530 AsRock H61M-VS ASUS 8800 GS 384MB 2x2GB DDR3 1333MHz 
Hard DriveOSMonitorPower
WD Caviar Blue 500GB Gentoo Samsung 226BW HiPro 480W 
  hide details  
Reply
post #6 of 6
Thread Starter 
Problem solved, thanks
+rep
The Computer
(13 items)
 
  
CPUMotherboardGraphicsRAM
E8400 3.8Ghz Gigibyte Ga-EP35-DS3L Evga 7600Gt 2gb (2x 1Gb) 
OSMonitorPowerCase
Windows Xp 19" Viewsonic Lcd 17" Compaq CRT 400W Enermax Powerspec 
  hide details  
Reply
The Computer
(13 items)
 
  
CPUMotherboardGraphicsRAM
E8400 3.8Ghz Gigibyte Ga-EP35-DS3L Evga 7600Gt 2gb (2x 1Gb) 
OSMonitorPowerCase
Windows Xp 19" Viewsonic Lcd 17" Compaq CRT 400W Enermax Powerspec 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Servers
Overclock.net › Forums › Specialty Builds › Servers › symbolic links in webserver