| View previous topic :: View next topic |
| Author |
Message |
Luzer
Joined: 06 Oct 2003
Posts: 13
Location: Chi-Town IL
|
| Posted: Wed Oct 08, 2003 2:59 am Post subject: i think it works but..... |
|
|
i got apache going and it works but when i start it up in the DOS it shows somthing like this. is this bad? and how would i make user go right to test.com index.htm? is it automatic?
http://www.airideas.com/dos.jpg
and my code is this (in httpd.conf)
Code:
NameVirtualHost *
<VirtualHost>
[code:1:5c187379ca]<VirtualHost 192.168.1.135>
ServerAdmin admin@test.com
DocumentRoot c:/apache2/htdocs/test
ServerName http://www.test.com/
ServerAlias test.com
DirectoryIndex index.html
ErrorLog c:/apache2/logs/www.test.com-error.log
CustomLog c:/apache2/logs/www.test.com-access.log combined
</VirtualHost>
T IN A
-luzer |
|
| Back to top |
|
kolatracks
Joined: 07 Jul 2003
Posts: 313
Location: UK
|
| Posted: Wed Oct 08, 2003 4:26 am Post subject: |
|
|
The error you are seeing is because you have a <virtualhost> which is not closed. which is what the error says.
Also i've never seen that line "[code:1:5c187379ca]" used before. I don't see what that has to do with apache.
I may be wrong but I doubt it.
anyway change the las bit of your config to
Code:
... the rest of httpd.conf ...
<VirtualHost 192.168.1.135>
ServerAdmin admin@test.com
DocumentRoot c:/apache2/htdocs/test
ServerName http://www.test.com/
ServerAlias test.com
DirectoryIndex index.html
ErrorLog c:/apache2/logs/www.test.com-error.log
CustomLog c:/apache2/logs/www.test.com-access.log combined
</VirtualHost>
The important thing is to get rid of the first <virtualhost> and that will get rid of that error.
And if you really need "[code:1:5c187379ca]" there then leave it in but I really don't think it's needed.
Quote: and how would i make user go right to test.com index.htm? is it automatic?
If I understand you correctly then yes it will automatically show index.html. |
|
| Back to top |
|
Luzer
Joined: 06 Oct 2003
Posts: 13
Location: Chi-Town IL
|
| Posted: Wed Oct 08, 2003 7:00 pm Post subject: Tnx |
|
|
I got the "[code:1:5c187379ca]" from this forum(http://apache2triad.net/forums/viewtopic.php?t=21)
ill try it and see if it works
i guess i was blind
Yep
--luzer |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 1538
|
| Posted: Wed Oct 08, 2003 7:58 pm Post subject: |
|
|
i have no ideea how "[code:1:5c187379ca]" got into that post but it was not there before and it must have something to do with the fact that this board has been relocated on the third server by now and some data might have been corupted in the process
ive edited/fixed the post kolatracks to its original content i believe .. but meke sure to doubleckeck it |
|
| Back to top |
|
Luzer
Joined: 06 Oct 2003
Posts: 13
Location: Chi-Town IL
|
| Posted: Thu Oct 09, 2003 3:53 am Post subject: port? |
|
|
ive scaned my httpd and i could not find anyting on an port. i changed( i think) everthing to the defults(that came with triad) excpt my V-host on it the error is:
http://www.airideas.com/dos2.jpg
you can view my httpd here
httpd.conf
(what is the download tag(so you click and it downloads) for html and BBCode?)
-out Luzer |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 1538
|
| Posted: Thu Oct 09, 2003 7:10 am Post subject: |
|
|
1 - copy/paste as quote the data from the shell instead of screenshot
2- there is no such thing as a download tag , files that the browser cant handle it downloads
3 - your error on line 995 is that you entered a url instead of a hostname
(view http://apache2triad.net/forums/viewtopic.php?t=48 for more info) |
|
| Back to top |
|
Luzer
Joined: 06 Oct 2003
Posts: 13
Location: Chi-Town IL
|
| Posted: Thu Oct 09, 2003 7:52 pm Post subject: ya |
|
|
i looked and and i did not see anyting on ports in httpd.conf. not to but the bandwih(hahahhaha.hhhahaha..hahahha....ha...ha?) out of you but i cant find anyting relating to port and V-host's.
add Code:
localhost.com:80 to [code:1:aa6cf5c2b8]
i think i messed up localhost. i changed tried to change it back to "localhost" from 192.168.1.135 but i messed it up. :(
im so confused
-LuZer |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 1538
|
| Posted: Thu Oct 09, 2003 8:33 pm Post subject: |
|
|
just use the default 1.1.6 httpd.conf and modify it via the gui in the CP
the port is the entry after ":" in hostname:port |
|
| Back to top |
|
| |