Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I expand the VARdirectory?

Status
Not open for further replies.

brichr

MIS
Feb 17, 2003
121
US
OK, I have a problem. We are using a hosting site "Dellhost" for our web server. These people only gave us 2 GIG for our VAR directory when they built the server for us. As you may know this is not very much room to store our web site. Is there a way to point our web pages to another directory, or a way to free up space on another directory to add to the VAR ? Can anyone point me to a link that might explain virtual directories

We have RedHat8.0 server. It has a 20 gig hard drive. Basically they gave us a standard install and they want to charge us a ton of money to do a custom install and expand VAR. We all know this is really easy to do during the installation process, but we don't really want to host the server at our office.
 
It's very easy to point to a new directory. But to do this you need access to apache's configuration file, httpd.conf. You also need to be able to stop and start the server. To point to a new directory, you simply change the DocumentRoot. Another thing you can do is use the Alias directive. This will tell apache to treat the Aliased directory as if it were inside your DocumentRoot (html directory) and that the directory is part of your webspace. For example, Let's say you want to keep all your MP3's in their own directory outside of your normal webspace, let's say /usr/mp3/. You would add the Alias directive to httpd.conf as follows:

Alias /mp3/ "/usr/mp3/"

Now create a directory container for it:

<Directory &quot;/usr/mp3&quot;>
AllowOverride None
Options All
Order allow, deny
Allow from all
</Directory>

Now to access a file in that directory, you would use this url:


Do you see how the url does not show the real path? In some cases, you may need to have access to the shell or at least the chmod command.
 
Provided you have sufficnt disk space elseware on the server _AND_ Apache is configured to Allow &quot;Follow Sym Links&quot; (posible but unlikely) then there is no reason why you cannot make a symbolic link from your /var/web/html to /home/yourfreespace/html

ln -s /var/web/html /home/yourfreespace/html


Good Luck
Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top