Using Vhost with fixed IPs
![]()
Vhost was written inhouse to make account setup easy. It's easy to use simply type VHOST (in upper case) from the telnet prompt. The text below will show in your telnet screen. VHOST is setup to make life easy. In most cases you can just hit enter. Our comments are in RED.
Type 'q' or 'exit' or 'bye' to quit at any time.
Type 'r' to restart Vhost and come back here.
Options:
[1] Add a new virtual domain
[2] Edit an existing virtual domain
[3] Edit IP numbers for this machine
(To add a new domain, just hit 'Enter'.)
Option:<1>: press enter
Please enter the domain name, (i.e. some.domain.com)
Domain name: test5.com
You entered: test5.com
Is this correct? <Yes> press enter
Will this be an IP based vhost? (unique IP) <y/N>
The above question wants to know if this site will have a fixed IP or shared IP address. If the site is going to have an SSL cert then the site must have a unique IP address.
Use IP No. - 208.186.122.218? - <Y/n>
Vhost will take the next available IP address on your machine and suggest it as the IP for the site. Enter Y or just press enter to accept this IP address.
Will this domain be SSL enabled? <y/N>:
Just as stated, will you be using an SSL cert on this site?
User name? <testtest>:
Vhost suggests a user name for this user. You can press enter to accept it or type in your own.
Password? <testq31b>:
Vhost suggests a password for the user. You can press enter to accept it, type N and Vhost will select another one, or type in your own.
Install FrontPage extensions? <y/N>
Just as it says, do you want FrontPage 2000 support for this site?
<VirtualHost 208.186.122.218>
ServerAdmin root@localhost
DocumentRoot /home/httpd/html/testtest
User testtest
Group web
ServerName test.com
Etc, Etc,
Vhost now displays the Apache configuration file for this domain. This is done so you can edit it manually if you want. Press Q and then wq to save and exit the vi editor.
This user (testtest) does not exist on Linux.
Apache will NOT work with non-valid user accounts.
Do you want to create an account for testtest? <Y/n>:
Next the above message is displayed. This is telling you that there is no user account for your new domain. Vhost wants to take care of it for you. It will also setup the FTP account. Answer Y.
Cut and paste the password below...
PASSWORD -- testq31b
Changing password for user testtest
New UNIX password:
Vhost makes it easy by displaying the password for you as Linux asks for it. Just type in the password. You will be asked a second time. NOTE: Write down the user ID and password.
Shall I update your .htpasswd file? <Y/n>:
Vhost wants to know if it should update your /etc/.htpasswd file for you. This is optional and it depends if you use this file to control access to certain things on your server.
I can attempt to install/update your system using
data from /vhost/vhosts-conf/test.com,
and the vhost file /vhost/conf/vhosts/test.com
Install now? <Y/n>
Vhost is saying that it has all the information needed to install you new domain. Answer Y to tell it to install.
Testing Apache Configuration.....
Syntax OK
Do you want me to attempt an Apache restart?
If you had error(s)above, you should fix whatever is wrong first...
Restart Apache? <y/N>
Vhost tests your configuration to make sure there are no errors. You can say Y or N to the above question. You can restart Apache later with APACHE stop then APACHE start. The word APACHE must be all in upper case.
Do you want me to install FrontPage Extensions now? <Y/n>
Answer Y to have Vhost install the FP extensions.
Do you want me to restart FTP so it knows about any
new users you may have added? <Y/n>
Vhost wants to restart your FTP service so the user will be able to FTP in when they try. Answer Y to have Vhost restart the FTP server.
Do you want to quit now? <Y/n>:
At this point Vhost has completed the account setup. You can press Y to exit Vhost. Your domain account on your server is now completely setup.