D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] apache web server adding pages as a normal user

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Sutton wrote:
> 
> I dont' see to have a domain
> name but I am not on a network just a single user computer connected to
> the net, I probably have got a domain name but don't know what it is.

Most distros have "dnsdomainname" to find if you have a domain name, and
what it is. You probably don't have one.

But the only relevance to Apache is if you use virtual hosting (i.e. you
try to give different HTTP responses on the basis of the domain name in
the HTTP query.

This is how most webservers support multiple (different) websites.

If you just have a default site configured (or one site per IP address)
then Apache server will ignore the "domain" part of the URL. Although of
course you'll still need the "domain" part to resolve to the correct IP
address on the client (i.e. "ping duron1600" has to work, and ping the
right machine).

> http://DURON1600/myusername/
> 
> if I do this, it changes the case to lowercase, so I get duron1600,
> (does this matter)

The "domain" part of a URL is case insenstive, so that is just down to
the software you are using.

> I have added html file to the public_html directory,  but typing the
> above in mozilla it can't find the file,
> Have I got the hostname part right?

Probably. I haven't use Apache "Per User" settings recently, but you may
have had to add the appropriate configuration option to the default
website to expect something to work. The URL might also need "~".

Check the Apache "error" log first.

>> Usually http://hostname/~username/ will get the public_html directory of
>> "username".

Also sometimes the default website may forbid the listing of
directories. Try calling the file something like "index.html" to be on
the safe side, or refer to it by the full URL. But the Apache logs will
say if it received a valid http request, and may even tell you where in
the filesystem it tried to file the requested file.
-----BEGIN PGP SIGNATURE-----
Comment: Encryption...is a powerful defensive weapon for free people.
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqx/AGFXfHI9FVgYRAklxAJ4xumnsf6rBAb6qNBOvwKf61PcujQCgiWfk
68HzfUSEmC5m0wmkzhLF5uM=
=vfea
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html