I've created a symlink inside my /var/www/html/ folder called "web", which is points to a my /home/dave/web directory. Inside that directory, I created a folder for my web site called "website". I thought I should be able to access that web site through FireFox by going to either: httpd://localhost/web/website ... or: http://localhost/web/website ... but I just get errors. It says that httpd is not a registered protocol, and the connection to localhost/web/website was refused. Am I not addressing these sites correctly? Have I muddled the directory trees or http protocols somehow? Just to be clear, the directory with all the html and php files is: /home/dave/web/website The symlink is: /var/www/html/web Dave
On Wed, Oct 12, 2005 at 12:14:41AM +0900, Dave Gutteridge enlightened us:> I've created a symlink inside my /var/www/html/ folder called "web", > which is points to a my /home/dave/web directory. > > Inside that directory, I created a folder for my web site called > "website". > > I thought I should be able to access that web site through FireFox by > going to either: > > httpd://localhost/web/website > > ... or: > > http://localhost/web/website > > ... but I just get errors. It says that httpd is not a registered > protocol, and the connection to localhost/web/website was refused. > > Am I not addressing these sites correctly? Have I muddled the directory > trees or http protocols somehow? > > Just to be clear, the directory with all the html and php files is: > > /home/dave/web/website > > The symlink is: > > /var/www/html/web >http://localhost/web/website should do it. If you get connection refused, it means Apache probably isn't running. "service httpd status" will tell you. If it's not started, you can start it with "service httpd start" and to make sure it starts at reboot run "chkconfig httpd on" (the last 2 will have to be run as root). Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263
>>> sender: "Dave Gutteridge" date: "Wed, Oct 12, 2005 at 12:14:41AM +0900" <<<EOQ > I've created a symlink inside my /var/www/html/ folder called "web", > which is points to a my /home/dave/web directory. > > Inside that directory, I created a folder for my web site called > "website". > > I thought I should be able to access that web site through FireFox by > going to either: > > httpd://localhost/web/website > > ... or: > > http://localhost/web/website > > ... but I just get errors. It says that httpd is not a registered > protocol, and the connection to localhost/web/website was refused. > > Am I not addressing these sites correctly? Have I muddled the directory > trees or http protocols somehow?Exactly! First of all, these are not CentOS specific questions... but it's an unmodarated list, so let's get over that. Second, unless you have created your own protocol called "httpd" there is NO protocol (that I know of) called that way. Just because http:// didn't give the desired result it's not a reason to start appending all the letters of the alphabet to it... You know, there is a manual for Apache... in quite a lot of languages too: http://httpd.apache.org/docs/2.0/mod/core.html#options "FollowSymLinks The server will follow symbolic links in this directory." The server must be configured to allow symlinks to be followed. That's all the mistery. Alex
this might be a dumb question, but are you trying to access this site from the same box? ie, did you bring up firefox on the server were the website is located? if not, replace localhost with the ip address. if so, try accessing just http://localhost/ and see if anything comes up. hth, cameron
--- Dave Gutteridge <dave at tokyocomedy.com> wrote:> > > I've created a symlink inside my /var/www/html/ > folder called "web", > which is points to a my /home/dave/web directory. > > Inside that directory, I created a folder for my web > site called > "website". > > I thought I should be able to access that web site > through FireFox by > going to either: > > httpd://localhost/web/website > > ... or: > > http://localhost/web/website > > ... but I just get errors. It says that httpd is not > a registered > protocol, and the connection to > localhost/web/website was refused. > > Am I not addressing these sites correctly? Have I > muddled the directory > trees or http protocols somehow? > > Just to be clear, the directory with all the html > and php files is: > > /home/dave/web/website > > The symlink is: > > /var/www/html/web > > Dave > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >What little i know about Apache, but i thought when going through the web browser it treats it like a other user so that will not have access to the directory /home/dave/web/website. Is it asking for a user and password when you go through the web browser? This one i am Probably way off, but that is my .02 cents worth to think about. Steven "On the side of the software box, in the 'System Requirements' section, it said 'Requires Windows or better'. So I installed Linux."