Computer Science Canada Apache 2.X |
Author: | Blade [ Fri Apr 25, 2003 7:38 am ] |
Post subject: | Apache 2.X |
also, about apache servers.... (their help file really sucks)... how can i make the user account a subdomain (from someserv.com/~user to user.someserv.com) |
Author: | octopi [ Fri Apr 25, 2003 6:26 pm ] |
Post subject: | |
do you have complete access to someserv.com? If yes, then its easy, if not then your SOL make sure that *.someserv.com will goto the same place www.someserv.com does. -then you can install perl, and download a free program called True Virtual and use it https://userfriendly.com/customprogramming/shop/categories/viewitem/tpath/primary/category/CGI_Scripts/id/0001 -Or you can use apache to do it for you. #add this to your httpd.conf file UseCanonicalName Off VirtualDocumentRoot /usr/local/www/data/%1 #you will need to change the directory, and do a little bit of fidling #it will make www.someserv.com goto /usr/local/www/data/www/ #and user4.someserv.com goto /usr/local/www/data/user4/ Thats a start. |
Author: | Homer_simpson [ Fri Apr 25, 2003 6:46 pm ] |
Post subject: | |
ofcourse it will go sign up at http://vze.com they'll give u a free subdomain address to give to ur existing website but u need to put a link to their website in your pages though but it's worth it |
Author: | Blade [ Fri Apr 25, 2003 6:47 pm ] |
Post subject: | |
thanks a lot man... yea the serv is on my comp, but the thing is i have my shared files on a different drive... apache is installed on D:\ and i have my shared files in c:\shared and the user folders are in c:\sites oh, and another thing... how can i find out my server path... you say /usr/local/ and i dont see those folders anywhere in the apache directory.... oh, and incase it matters, iam running WinXP Pro |
Author: | octopi [ Fri Apr 25, 2003 8:41 pm ] |
Post subject: | |
Okay, i just installed the win32 version (I mainly use unix) you will need to add this to your httpd.conf file # LoadModule vhost_alias_module modules/mod_vhost_alias.so UseCanonicalName Off VirtualDocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/%1" # Thats what I used, now inside the htdocs directory you would make a seperate directory for each USER.domainname.com You can change the location above to point to where all your user directories already are. You will need to make a directory named www this is what will display when you call WWW.somedomain.com and also in the main directory you need to make a copy of what you put inside the www directory (so that if people access your site as somedomain.com they will get the same thing) In unix you could make a symlink so that the www dir just points back to the main dir, but I don't think you can in windows. Yeah, as I said before, make sure wildcarding is on for your domain, if you have direct access to your dns records then just add a wildcard record. If not email your dns provider and ask them, or you might be lucky and it might already be enabled. I don't know what you meant by shared files....but.... You would probally use \/ if you keep your user directories in C:/sites/ # LoadModule vhost_alias_module modules/mod_vhost_alias.so UseCanonicalName Off VirtualDocumentRoot "C:/sites/%1" # Good luck. |
Author: | Blade [ Fri Apr 25, 2003 10:09 pm ] |
Post subject: | |
sweet, it works thanks so much for your help man greatly appretiate it.. the only thing i cant get is it to display the main files without www. |
Author: | octopi [ Fri Apr 25, 2003 11:16 pm ] |
Post subject: | |
Um, well on windows the only way I think you can do it is, to copy everything in the WWW directory into the C:/sites/ directory. (windows sucks, cause you can't link two directorys together like on unix) So you will end up having two seperate locations that contain the exact same files. |
Author: | Blade [ Sat Apr 26, 2003 9:17 am ] |
Post subject: | |
for some reason it still comes up as page cannot be found, it should give a directory listing.. shouldnt it? |
Author: | octopi [ Sat Apr 26, 2003 12:29 pm ] | ||
Post subject: | |||
Well, goto that site (yours, the one that makes the error) And then check your error log, it should say something like:
Or something, that will tell you where the server is looking for the files to be. (make sure to check the date/time to be the same as your clock, so you are looking at the right entry.) Hope that helps. |
Author: | Blade [ Sun Apr 27, 2003 2:30 am ] |
Post subject: | |
Quote: The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. -------------------------------------------------------------------------------- Please try the following: If you typed the page address in the Address bar, make sure that it is spelled correctly. Open the localhost home page, and then look for links to the information you want. Click the Back button to try another link. Click Search to look for information on the Internet. HTTP 404 - File not found Internet Explorer thats the error i get.... i think there something in my httpd.conf file that i'm missing.... because if i comment the virtual document root, and i just use the normal docuent root... it works fine.... **shrugs sholders**... you should know more than i do though |
Author: | octopi [ Sun Apr 27, 2003 8:41 am ] | ||||
Post subject: | |||||
Like I said before, look in your error log files, its very helpful, I have the same problem when accessing my server via localhost, solution:
Well the above tells me that its looking for files in the localhost directory., So you will need to make yet another directory. C:\Sites\localhost in that put the same stuff you put into www all should work. why this happens? the VirtualDoc.... thing takes a look at the host name the web browser sends the server- example www.yahoo.com now when we use
the server takes the 1st part of the site (WWW.yahoo.com) and looks for a directory named C:/sites/www/ when you just enter yahoo.com the webserver recognizes its a domain name and gets the files from C:/sites/ instead. but now when you enter localhost, it can't detect that as a domain name, and so it just takes the first part of it (which is the only part - localhost) and it looks for the files to serve in the C:/sites/localhost/ directory. Understand so far? Hope that helps. |
Author: | Blade [ Sun Apr 27, 2003 11:28 am ] |
Post subject: | |
Quote: [Sat Apr 26 10:02:13 2003] [error] [client 65.93.70.8] File does not exist: C:/sites/blademan
yea i got it... hehe,thx.. it made more sense when you said it looks for the first part.... blademan... i was just using no-ip.com as my dns, and it works pretty well lol... cuz i'm cheap |
Author: | octopi [ Wed Apr 30, 2003 10:39 pm ] |
Post subject: | |
Let me know if you have any more problems |
Author: | Blade [ Thu May 01, 2003 11:38 am ] |
Post subject: | |
okie, thx alot man.. really appreate it |
Author: | JSBN [ Mon May 05, 2003 12:17 pm ] |
Post subject: | |
Whoever helps me get's 50 bits I am having trouble getting a .htpasswd file to work with a .htaccess file. I am not at home so i cant put the contents up right now, but i will later, is there anything that must be enabled the cofig files for apache, fo it to work? (Expect the code for the file @ approx. 6-8pm EST) |
Author: | Blade [ Mon May 05, 2003 5:10 pm ] |
Post subject: | |
Quote: # AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All theres that part in the httpd.conf, it must be set to 'All' for the .htaccess files to work... (i use all otherwise you ahve to specify)... i dunno if thats what yer askin for though lol |
Author: | octopi [ Mon May 05, 2003 11:50 pm ] | ||||||||
Post subject: | |||||||||
I don't know what you have tired but try this if you haven't already:
You will need to change the path, but you might be able to get away with
And for your .htpasswd file you need to encrypt the passwords.
that would be
http://www.arago.utwente.nl/comms/webber/sander/encrypt.php the first two digits of the encrypted password is called the salt, usually you use a random salt, (the site above does) but sometimes you just use the first two letters of the password (in the code snipbit above) but the salt isn't really important. (Its just to explain to you why the same password can result in a different encrypted string) |
Author: | JSBN [ Tue May 06, 2003 10:45 am ] |
Post subject: | |
thx, i'll try that +50 to both of you |
Author: | Blade [ Tue May 06, 2003 10:52 am ] |
Post subject: | |
thx, hope you get it working |
Author: | Blade [ Tue May 06, 2003 2:40 pm ] |
Post subject: | |
well..... for some reason i cant get my DNS working properly.... i checked the ip on it and for some reason it still wont work... i reformatted my comp and reinstalled apache, but i had backed up my old httpd.conf file and used that one... it shouldn't be a host problem cuz my ip address works fine if i use that... any ideas? i just got my friend to go there and it works fine, but its still messed on my computer |
Author: | octopi [ Tue May 06, 2003 3:39 pm ] |
Post subject: | |
Blade: It sounds like your dns provider isn't too good (Your isp) Do you have sympatico? they are horible... (I have them ) Try to ping your domain name, if it gives your old ip address goto a website like http://centralops.net/co/Ping.vbs.asp See what ip address it shows for your domain name. You could also try doing something like http://somethingrandom.subdomain.domainname.com ^^^^^^^^^^^^^^^^ That will force your dns server to grab the latest ip address. (DNS servers cache addresses so cut down bandwidth costs for them, and increase speed for you) But of course this will screw up stuff we discussed previously. You could look for a good dns provider, and set your dns ip numbers on your NIC, that would help. |
Author: | Blade [ Wed May 07, 2003 10:46 am ] |
Post subject: | |
yeah... i do have sympatico... so its sympatico's problem that no-ip isnt working properly... but why was it working before i reformatted? |
Author: | JSBN [ Wed May 07, 2003 11:19 am ] |
Post subject: | |
yea, i am also having problems with sympatico, i was going through a router and it worked for a while, but does not longer(not a dmz problem). so i tried to by pass the router, but now it is messed. so i think i am guna reload the cofig file to the original, if it still doesn't work then i gunna do something ..... DAMN NATION!!!!!!! ..... that felt good |
Author: | octopi [ Wed May 07, 2003 2:19 pm ] |
Post subject: | |
I don't know exactally what the problem is, but sympatico has given me alot of trouble, they have crappy dns servers thats for sure. About your router problem, I had one before, you don't have a nexland router do you? My problem was with my nexland router, I couldn't access my domain name by typing in "http://grass.etw.ca" or whatever. But other people could. I could access it locally using its local ip address though. But this problem was caused by a problem with the routers firmware (I acctually had to set it back one, cause the latest didn't work) What kind of router do you have? Blade: How often do you disconnect from sympatico? Could it be that you barely ever disconnected, and then when you reformated you disconnected, so then you attach the problem to the formatting, and not the disconnecting of the internet connection? (are you following me?) Like I only disconnect one a week max, your probally the same right? When you formatted did you disconnect? If so then your ip would have changed so noip.com would be pointing at the old address, and when you update it, nopip.com updates, but sympatico doesn't refresh its dns records with the new update. (Make sense?) |
Author: | Blade [ Wed May 07, 2003 7:53 pm ] |
Post subject: | |
actually i did disconnect once a week like you, and no-ip gives out this software that auto-updates your ip when you come back on.... i even turned off the software, disabled the service that comes with it, disconnected, waited 5 mins, then reconnected, went to no-ip, manually updated the ip, and it still doesnt work properly... i haven't retried in a few days, so i'll go retry now, but i'm not sure if it'll work |
Author: | Blade [ Wed May 07, 2003 9:24 pm ] |
Post subject: | |
YAY!!! its working now.... kinda wierd... |
Author: | octopi [ Wed May 07, 2003 11:40 pm ] |
Post subject: | |
DNS just takes a name and converts it to a number (not exactally but close enough), if you use no-ip.com they set there servers to update your domain name sumthin.no-ip.com every 3-5 minutes, normal dns servers update once a day. Sympatico's servers are crappy so they don't update as much as they should (they should update all of no-ip.com's records every 5 minutes) so when you type in blade.no-ip.com your computer fetchs the ipaddress from sympatico's crappy out-dated records, and thats where the problem comes in. It tells your computer to look in the old spot. You can check if where your domain name is pointing by pinging it, and reading the ip address. Best solution is to wait for the dns servers to update. |
Author: | Blade [ Thu May 08, 2003 7:56 am ] |
Post subject: | |
i didnt think no-ip looked at sympatico for it... i thought it just pretty much "redirected" the ip... not exactly redirect but that's kind of what it is... |
Author: | octopi [ Thu May 08, 2003 3:37 pm ] |
Post subject: | |
No-ip doesn't look at sympatico. You type in blademan.no-ip.com and your computer connects to sympaticos dns servers and say "where is blademan.no-ip.com located" sympatico goes to no-ip.com and no-ip.com returns "its located at 64.xx.xx.xx" sympatico sends that to you the user, and your browser connects to that IP address for the webpage. Where the problem comes in is after sympatico requests the info from no-ip sympatico thinks it's being smart and caches the data, so future requests take less time. But since your hostname points to a changing ip address theres a problem when you update it(the domain name). Sympatico still looks at the old address. |
Author: | Blade [ Thu May 08, 2003 7:01 pm ] |
Post subject: | |
well, i've rebooted 6 or seven times today... and the smartass i am i frieed my processor, ... so i put together another comp with thee same hd, and now its back online.... it still works now... |