Web Hosting Talk







View Full Version : Setting up an Alias directory in Unix?


Doozo
09-15-2002, 06:05 AM
I am trying to setup an alias directory to be shared across all of my domains. I know I have to enter a similar line like this Alias /recips/ "/home/recips/public_html/" in my httpd.config file.

Unfortunately I have no idea how to get to this after logging into my server.

I have heard this isn't that hard but I haven't done much command programming since Basic was a common language!

Anyone know how to do this?

2host.com
09-15-2002, 06:45 AM
What OS are you running? Are you familar with pico or vi? Locate the httpd.conf file with locate or find if you need to (it's usually in /etc/httpd/conf or /usr/local/apache/conf) and edit the file. You can add that line globally near the other global aliases if you have any, otherwise you can create it (of course).

Doozo
09-15-2002, 07:18 AM
I'm running Unix. I have no idea what pico or vi are. I'm so ashamed.:bawling:

If you can slow down a lil for me and tell me what I do from login I'd appreciate it. It sounds like you really know what you are talking about!

apollo
09-15-2002, 08:21 AM
login to shell account (via ssh or telnet, or from console). locate httpd.conf file. type "pico httpd.conf". Set-up alias. Type "Ctrl-X" hit 'y'. Then from shell type "../bin/apachectl restart"

And you are done. Make sure your apache server starts:)
ps. I hope you have write permission to file (try to use root account if you have password)