clothes store     


Any good sites to start a si..

I need to come up with a goo..

Can a picture of a Rembrandt..

What personal information ha..

Can any body tell me how to ..

How does a search engines de..

I plan to start a forum but ..

I made a website and use sql..

What is a good name for a Ca..

Computer XP error - &#03..

"HOW DO I CONNECT A LAP..

How can I "grab" u..

I have a business domain and..

What was the name of the son..

F(x) = (x虏 - 18) / (32 - x虏..

I have just registered a dom..

Are there any .LA domain reg..

Internet Trademark Infringem..

I want to reg a domain fo co..

When you go in2 web domain s..

Is this french?

Svchost is quite important ,..

I pay REGISTER.COM way too m..

Is Microsoft Outlook 2003 w/..

Web Hosting Question? - /god..

APlus.net Scam, Rip Off, PLE..

Does this hurt Searh Engine ..

Can a word be trademarked (e..

Transfer website?

Which one is the best?

Search engine ranking?

Why is todaycnn violating co..

Trademark Infringement - whe..

Looking for Great and Cheap ..

Please tell me how do i reac..

User name for ntlb.net?

Newbie when it comes to doma..

How can I host multiple webs..

Which hosting companies allo..
 
How to create a sub-domain in Apache or mysql database and make a user..    [Imwebhost]

A subdomain is configured by virtual host entries in httpd.conf.

Here is an example of what the file should look like:

Listen 80

NameVirtualHost *

<VirtualHost *>

ServerName www.domain.com

DocumentRoot /home/httpd/htdocs/

</VirtualHost>

<VirtualHost *>

ServerName subdomain.domain.com

DocumentRoot /home/httpd/htdocs/subdomain/

</VirtualHost>

To create a username and password you will need to create or edit your .htaccess file.

You need at least four lines in .htaccess to set up password protection:

AuthName "Realm name"

AuthType Basic

AuthUserFile /BASEDIR/.htpasswd

require valid-user

/BASEDIR/ is the path to your root directory.

AuthName: Realm name a piece of text that appears on the dialogue box asking for the password. See what it does in practice and then you can decide what text you would like here.

AuthType: Only Basic is possible at present.

AuthUserFile: The existence of the AuthUserFile line suggests that you can call the .htpasswd file something else. That is true, but is best to call it .htpasswd, so that nobody can view its contents.

require: This says that any user validated by password is allowed.

As well as these entries in the .htaccess file, you will need to set up a .htpasswd file

The format of this file is simple. It consists of a series of usernames and passwords. Each line holds one username and the single password associated with it, separated by a colon. Here is an example:

frances:WrU808BHQai36

john:iABCQFQs40E8M

lisa:FAdHN3W753sSU

You may think these passwords are rather unrealistic and difficult to remember - the reason for this is that they are encrypted for security. The .htpasswd file does not hold the actual passwords in clear text - it holds them in a coded form. If you are running Apache (at least on Unix) there is a command called htpasswd which will translate clear text passwords into this encrypted form. What many webmasters do is use an on-line tool to do this translation.


[Imwebhost]


Your Opinion Really Appreciated...Which Website Name Sounds ..
If I change the name of my computer, do I need to rejoin the..
How to move my .mac website already up to my yahoo domain?
Can someone think of a name for a dot com site?
Are you able to get an email for free informing you the doma..
I am thinking of selling my website name and all?
How to clear my DNS host domain cache in my laptop?
What&#039;s a good name for a robotics company?
Which sites can offer me free domain registration?
What are my rights as a domain registrant?

Google


Comment
Name: Name:  Password:   Register?
Comment:
Face  
 

links:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 email hosting 25