Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
ive been messing around with virtual hosts for about an hour now, and was wondering, my domain is http://foxy.sytes.net, but can i do virtual hosts like, http://foxy.sytes.net/host1/ etc? ive been trying but cant figure it :| ,
meh, ive added a virtual host, put 'public_html' in the /etc/skel/ folder. then made a new user, and put the ftp chroot on. the ftp is working. but whenever i go to access http://foxy.sytes.net i get '400 bad request', and the same for http://foxy.sytes.net/~acigolf/
why am i getting bad request?
EDIT -- this is my virtual host in the httpd.conf file:
Is that subdomain setup at no-ip.com?
acigolf.foxy.sytes.net
plus you have an ssl apache. listening on port 443.. when you type in foxy.sytes.net - the browser assumes you are trying http not https.. this is why you are getting the bad error.
but when you type in https://foxy.sytes.net is give the cannot find server error..??
in your httpd.conf file in the ssl section, you have to enable ssl for virtual servers as well.
nevemind the subdomain, im just gona use http://foxy.sytes.net/~acigolf/ , anyway i cant find anything about ssl with virtual hosts in the httpd.conf . i just get the bad request through http://foxy.sytes.net . the ftp accounts work fine though~ what should i do about the enabling ssl for virtual hosts ?
[root@localhost root]# httpd
[Wed Mar 24 22:01:47 2004] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with
undefined results
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
if your apache is listening on both ports I would say yes give it a shot, cauze your server is listening on port 80. But it's an ssl server (which is port 443)
So just add the port to your NameVirtualHost
what should i be doing to get these to work with virtual hosts and the /~name/ ?
thanks
EDIT --
when i type 'httpd' into the terminal like before i still get
Code:
httpd failed. The error was: Starting httpd: [Thu Mar 25 16:49:46 2004] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
[FAILED]
EDIT EDIT EDIT EDIT EDIT
i cant even start httpd in serivces now i keep getting that error
Last edited by Digital_Err0r; 03-25-2004 at 11:03 AM.
do you really need SSL? if not dont use it... and your are running apache with the ssl mod enabled.. but the default ssl port (443) is no where in your httpd.conf file. Have you made your certificate/key for SSL? I recommend you get http://apache.mirror.secondchapter.i...-2.0.49.tar.gz and build the server without SSL. (if you dont need it.) If you do here is the apache how-to for 2.0 http://httpd.apache.org/docs-2.0/
for the httpd.conf file to acces the public_html files the module has to be in..
Code:
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
UserDir "enable" remove comment (#) on this line, and change disable ro enable
#
# To enable requests to /~user/ to serve the user's public_html
# directory, use this directive instead of "UserDir disable":
#
UserDir public_html
</IfModule>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.