LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-26-2011, 11:57 AM   #1
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Rep: Reputation: 0
web server


I decided im going to set up my slackware 13.1 32bit p4 as a web server host for a few friends. I want their webpage to be cgi enabled. Since I am hosting for many sites do i have to modify the httpd.conf regarding directory root?

I have made an account called www and am currently hosting a test page there,,,as well as set /home/www as directory root in httpd.conf. I think im on the right track but I could use some help from experts

Thanks in advance.
 
Old 05-27-2011, 12:37 AM   #2
Zetec
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, W7, openSUSE, Centos
Posts: 152

Rep: Reputation: 25
Are these separate websites with different url's? If so, you will need to look at Apache Virtual Hosting.
 
Old 05-27-2011, 05:52 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Zetec has the right idea. To expand upon that, you could create a vhost for each user and point the document root to somewhere in their /home directories. This way you can maintain isolation between the user's and everybody has their own page while the root web system remains available for system wide functions. Using this approach the default URL would be http://<your-domain>/user. The other answer would be for each user to obtain the own domain, in which case you can name the vhost according to their domain and just point to the document root.
 
Old 05-27-2011, 02:04 PM   #4
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
Noway2::
what your saying is i make standard linux acount for these people, then place their webpage root as their home directory? Do I have to modify the httpd.conf file, and put a driectory root for each one? Or do I set it up with virtual host, and put each virtual host in the httpd.conf?
for example Dave wants a webpage, make dave an account /home/dave and have /home/dave/www as his web page root? And how about attatching CGI? Can I automate setting up virtual hosts in the httpd.conf file or do I have to manually set it up?

Is it possible to set up a webpage host , where you go to your webpage but no body else can see it? That being asked, is it also possible to make a public version of this webpage they want to display? Basically 2 web pages one for private viewing and one for public viewing,,, with out some of the private "applications" ?

I know I will have a lot of questions about this, but im obsessed with making this work, and I always appreciate any and all help to get this little server running.
 
Old 05-27-2011, 03:41 PM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

you might want to check Install the Apache 2 Web Server or Setting up an SSL secured Webserver
 
Old 05-27-2011, 05:10 PM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
If I recall correctly, slackware has a vhost configuration file. You should look at that for setting up a vhost. You are correct that you would set up, for example, /home/dave/www for Dave's web page document root. The permissions might get a little tricky for keeping others from reading the directory. Apache needs read access, which is usually associated with others. You could put Apache in each of the user's groups and give group read access on the www folder. You would probably want to remove group write and execute access however to prevent Apache from executing and modifying files. I am not sure what you mean by attaching CGI. To be honest, I have always written html and PHP pages and haven't needed "cgi".

Your users can use the .htaccess to assign passwords and users to their sites to protect them. If you want, you can give each one an SSL site, but the certificates would be an issue by "official" standards. Normally it is one cert per ip address, though recently SNI which identifies the vhost is becoming more accepted. You could give everyone a certificate that has been signed by your web server and they can use that to provide certificate authentication - about as secure for access as you can get.
 
Old 05-29-2011, 11:54 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Actually, CGI is Common Gateway Interface https://secure.wikimedia.org/wikiped...eway_Interface ie any time you have a 'dynamically generated' or 'interactive' web page ie not flat text (html, pdf etc) then that IS using the CGI protcol, so if you've used PHP, you have used CGI
 
Old 05-30-2011, 06:53 PM   #8
Shao Lung
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Actually, CGI is Common Gateway Interface https://secure.wikimedia.org/wikiped...eway_Interface ie any time you have a 'dynamically generated' or 'interactive' web page ie not flat text (html, pdf etc) then that IS using the CGI protcol, so if you've used PHP, you have used CGI
So what your saying here is those site hosts like my space , where, as a client you can manipulate your web page, set up your background move notes/memos, attach you tube links etc, thats all cgi ???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] win7 web client problem with apache2 web server on linux lapinux Linux - Networking 2 03-15-2011 12:21 PM
How to monitor web server, FTP server, Mail server and database server vodka33us Programming 1 06-16-2008 04:20 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration