DeveloperSide.NET Forums
December 11, 2019, 10:59:31 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Making this server a public service...  (Read 17952 times)
0 Members and 1 Guest are viewing this topic.
lloydkirk
Member
*
Posts: 10

lloydkirk1989
View Profile
« on: July 09, 2005, 07:22:18 PM »

Hi...Im interested in offering free web hosting to a few friends and family. So could you guys post some free tools to make this possible and easy.
I've got an ftp server set up, but maybe some other stuff like a nice administration panel, automatic registration scripts and anything else that would be helpful in offering a web hosting service. Also, I've purchased a domain and have the ability to make sub-domains. If I gave a friend a sub-domain for his site, what IP address would it point too since im hosting my own server. Is this even possible? Or would I just have to give them a directory like mydomain.com/username and maybe just use the sub-domain as a re-direction service?

thanks for your patience...:)

~Lloydkirk
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: July 09, 2005, 08:05:32 PM »

Quote

If I gave a friend a sub-domain for his site, what IP address would it point too since im hosting my own server. Is this even possible?


Its called "Virtual Hosting" and you would use the same IP as your server.  Just search for those terms.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
lloydkirk
Member
*
Posts: 10

lloydkirk1989
View Profile
« Reply #2 on: July 10, 2005, 02:00:05 PM »

Alright...I did some research on Virtual Hosting and discovered that by adding code along these lines to the httpd.conf file creates virtual hosts.
Code:
NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
        ServerName localhost
        DocumentRoot "/www/webroot"
</VirtualHost>

<VirtualHost 127.0.0.1>
        ServerName dev.localhost
        DocumentRoot "/www/webroot/dev"

        <Directory "/www/webroot/dev">
                order deny,allow
                deny from all
                allow from 127.0.0.1
        </Directory>
</VirtualHost>

<VirtualHost 127.0.0.1>
        ServerName private.localhost
        DocumentRoot "/www/webroot/private"

        <Directory "/www/webroot/private">
                order deny,allow
                deny from all
                allow from 127.0.0.1
        </Directory>
</VirtualHost>


Out of curiosity, is there anyway to make this process more automatic...maybe via a .bat file? Idealy, I would like to have web based hosting application that automaticaly creates a new virtual host 'user' and restarts apache.
On a side note, I found a nice server administration panel called ZPanel. Its a bit like cPANEL but its free and doesn't have as many features.
Logged
Jorge
Customer, Basic Support
Guru
*****
Posts: 544

jorge_schrauwen@msn.com
View Profile WWW
« Reply #3 on: July 10, 2005, 04:30:00 PM »

You might want to read this then:
http://www.blackdot.be/?inc=apache/masshosting/index.htm

I also provide a simple console program to create the apropriet directories
Logged

yfastud
Customer, Basic Support
Jr. Member
*****
Posts: 36


View Profile
« Reply #4 on: January 06, 2007, 03:39:15 PM »

Hi Jorge,
I know this is an old post and that's why I can't find article, but still wonder where is that link now?
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #5 on: January 06, 2007, 04:09:01 PM »

Just use http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html for you mass VH needs.

There are also 3rd party modules like mod_macro and mod_vh.
« Last Edit: January 06, 2007, 04:11:23 PM by admin » Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!