Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-14-2002, 03:28 PM   #1
Member (8 bit)
 
Join Date: Jan 2000
Posts: 142
Question Can I serv two web sites from one PC?

Hello everyone! I feel like I am finally getting somewhere. After a long time of playing around with Linux I am starting to understand how things work here. I am using Caldera 3.1 and set up Samba and Apache on it. Everything seems to be working OK so far. Now my question is can I serve two sites from one pc and if I can what do I need to do! Thanks for all of your input and let me know if you need more information from my end. Thanks! Leo.
lsakhvoruk is offline   Reply With Quote
Old 03-15-2002, 07:24 AM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Yep, you can two or twenty or more off of one server. What you would do is to create separate directories for each of your sites. Then use the VirtualHosts in Apache to setup the different accounts. It is pretty easy. If this is a non-local webserver and you are actually serving up pages on the Internet, you might want to consider taking Samba off, since it can be a security risk.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 03-15-2002, 07:32 AM   #3
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Absolutely!

You need to read on the DNS howto sections on how to get it working correctly.

http://www.linuxdoc.org/HOWTO/DNS-HOWTO.html
This is good as well:
http://www.troubleshooters.com/linux/dns.htm

Virtual Hosting on Apache: http://www.apacheweek.com/features/vhost
Statica is offline   Reply With Quote
Old 03-15-2002, 04:46 PM   #4
Member (8 bit)
 
Join Date: Jan 2000
Posts: 142
Thumbs up THANK YOU GUYS!!!

I REALLY appreciate your replys and links! I am having another bit of a problem now though. I am trying to serve a page with CGI in it and the CGI part just does not work!!! I have searched around on the web and found a few things and included them into my httpd.conf file and still no luck. I would really appreciate some help in this area! The error I get is:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.19 Server at 207.254.220.37 Port 80"

Plus I have some macs on the network and I can let them see one directory on the Samba server by editing the AppleVolumes.default but I would like to know how I can let them see two and more directories!

Thank YOU for All the help! I sincerely appreciate it! Let me know if you need more info from my end! Thanks much! Leo.
lsakhvoruk is offline   Reply With Quote
Old 03-15-2002, 09:02 PM   #5
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Look in your server logs and you should get a more detailed explanation. Apache uses modules and for CGI, there are quite a few that have to be loaded or compiled into Apache. You might also check the specific script requirements to see what it requires.
mairving is offline   Reply With Quote
Old 03-16-2002, 03:18 PM   #6
Member (8 bit)
 
Join Date: Jan 2000
Posts: 142
Question Some CGI seems to work!

Now I am just puzled! I found some CGI script that was installed with the distribution and just made a link to it in the html that I was serving and it came up no problem! I double checked the CGI I was serving that would not work and all the files in that CGI-BIN directory have a *.pl extension!?! Does this mean that they are perl script and not cgi?? Do I have to do something extra to enable perl script??! Thanks for all the advice once again! Leo.
lsakhvoruk is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:22 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2