![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#25 (permalink) |
|
Manager, Alternative Comp
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS
|
Click on Start->All Programs->Apache HTTP Server->Configure Apache Server->Edit the Apache httpd.conf Configuration File.
This should open up a Notepad window with a bunch of stuff. You don't have to go through it line by line, but you do need to at least skim it. If you scroll all the way to the bottom, you'll see a section that's commented out. It should say "VirtualHost". You'll need to create a VirtualHost section and then restart Apache once you've saved the changes. The one they give you is just an example, so use that to create your own.
__________________
|
|
|
|
|
|
#27 (permalink) |
|
Cymru am byth
|
This is the virtualhosts section of my httpd.conf file:
Code:
<VirtualHost *> ServerName www.gamelazer.com ServerAlias gamelazer.com DocumentRoot C:\apache2triad\htdocs </VirtualHost> <VirtualHost *> ServerName dumberdrummer.gamelazer.com DocumentRoot C:\apache2triad\htdocs\dumberdrummer </VirtualHost> The second is for a subdomain, dumberdrummer.gamelazer.com. I simply added a folder in my htdocs folder and told it to be used as dumberdrummer.gamelazer.com. Simple. So just replace the already there values with the correct ones and you should be good.
__________________
Living with Louie dog's the only way to stay sane _____________________________________________ ... and with those words so begins my lifetime of longing for the devil's warm embrace |
|
|
|
|
|
#28 (permalink) |
|
Register user
|
when i look at it, it says this
#<VirtualHost *:80> # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName sr-hosting.no-ip.org # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost> i changed the part where it says server name see if u look at skies homepage thats what i want basicly exactly what he has except i have my own layout and for the info that i know is..... my url sr-hosting.no-ip.org my e-mail cookiemonster3000@hotmail.com server name: sr-hosting.no-ip.org (i registered apache with this info) Last edited by krakozia : 12-05-2005 at 07:43 PM. Reason: didn't put enough info |
|
|
|
|
|
#29 (permalink) |
|
Manager, Alternative Comp
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS
|
Here's an example of one of my Virtual Hosts:
Code:
NameVirtualHost 1.2.3.4:80 <VirtualHost 1.2.3.4> ServerAdmin myaddress@domain.com DocumentRoot /home/username/public_html ServerName www.domain.com User username Group username ServerAlias domain.com www.domain.com CustomLog domlogs/domain.com combined ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/ </VirtualHost> Some other changes you need to make are the following (since you're on Windows): For any file/folder paths, use the Windows convention, not the Linux convention as shown above. In other words, the DocumentRoot line should look like: "DocumentRoot C:\website\" (or something similar). Remove the #'s in front of each line. The # means that the line is a comment, and therefore, those lines will not be looked at. Once you've made the changes, restart Apache.
__________________
Last edited by Skie : 12-05-2005 at 09:39 PM. |
|
|
|
|
|
#31 (permalink) |
|
Manager, Alternative Comp
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS
|
Please re-read what I posted. You can copy/paste what I provided, but you'll need to make changes. I've specified what needs to be changed. Since I don't know where your HTML files are located and since I don't know your username, I can't tell you what to write down.
__________________
|
|
|
|
|
|
#32 (permalink) |
|
Register user
|
once again can u edit what i need and paste it on here so i can change it?
Code:
#<VirtualHost *:80> # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName sr-hosting.no-ip.org # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost> |
|
|
|
|
|
#33 (permalink) |
|
Cymru am byth
|
ok, we've both told you what to do, and now skie just told you that he CAN'T do what you are asking him to do.
You will have to do it yourself, just reread our posts.
__________________
Living with Louie dog's the only way to stay sane _____________________________________________ ... and with those words so begins my lifetime of longing for the devil's warm embrace |
|
|
|
|
|
#35 (permalink) |
|
Cymru am byth
|
#<VirtualHost *:80> <-- REPLACE THIS WITH YOUR IP ADDRESS (192.168.0.2 or something like that, hit start, then run and type cmd. When the window pops up, type ipconfig and it will display your ip address.
# ServerAdmin webmaster@dummy-host.example.com <-- REPLACE THIS WITH YOUR EMAIL ADDRESS # DocumentRoot /www/docs/dummy-host.example.com <-- REPLACE THIS WITH THE PATH TO YOUR FILES YOU WANT TO SHOW UP ON YOUR SERVER. (For example, C:\htdocs. Then you put all of your files in c:\htdocs and they'll show up on the server. # ServerName sr-hosting.no-ip.org (You have this right, I think) # ErrorLog logs/dummy-host.example.com-error_log (Replace with the path to your error log. C:\logs\foo # CustomLog logs/dummy-host.example.com-access_log common (same as above) #</VirtualHost> That's all there is to it. Then restart apache (Or just restart your computer) and all should work. Remove the #s as well or else nothing will work.
__________________
Living with Louie dog's the only way to stay sane _____________________________________________ ... and with those words so begins my lifetime of longing for the devil's warm embrace |
|
|
|
|
|
#36 (permalink) |
|
Register user
|
![]() ok this is what happend atleast it doesn't say failed anymore heres what the lines look like now and also when i put the root file that shows on the server theres nothing in there yet... Code:
<VirtualHost 192.168.0.100:80> ServerAdmin cookiemonster3000@hotmail.com DocumentRoot C:\Documents and Settings\Krakozia\My Documents\server ServerName sr-hosting.no-ip.org ErrorLog C:\Program Files\Apache Group\Apache2\error CustomLog C:\Program Files\Apache Group\Apache2\error </VirtualHost> |
|
|
|
|
|
#37 (permalink) |
|
Manager, Alternative Comp
Join Date: Mar 2003
Location: Downers Grove, IL
Posts: 1,821
OS: Gentoo Linux, Redhat Enterprise Linux, CentOS
|
I was wondering about the paths and I guess I was right. All paths need to be enclosed within quotes ( " ").
Example: Code:
<VirtualHost 192.168.0.100:80> ServerAdmin cookiemonster3000@hotmail.com DocumentRoot "C:\Documents and Settings\Krakozia\My Documents\server" ServerName sr-hosting.no-ip.org ErrorLog "C:\Program Files\Apache Group\Apache2\error" CustomLog "C:\Program Files\Apache Group\Apache2\error" </VirtualHost>
__________________
Last edited by Skie : 12-07-2005 at 01:58 PM. |
|
|
|
|
|
#38 (permalink) |
|
Register user
|
![]() im about to read this site u posted now also this is what the code looks like now and once again thanks for all this help Code:
<VirtualHost 192.168.0.100:80> ServerAdmin cookiemonster3000@hotmail.com DocumentRoot "C:\Documents and Settings\Krakozia\My Documents\server" ServerName sr-hosting.no-ip.org ErrorLog "C:\Program Files\Apache Group\Apache2\error" CustomLog "C:\Program Files |