List Info

Thread: server to test websites




server to test websites
user name
2007-10-15 22:16:28
Hi everyone
I apologize in advance if I ramble/dont get to the point, my girlfriend says I do that a lot.

I just installed 2.2.6 on Windows XP with the intention of testing various websites being written on the local machine. I am having a few problems and I think they arise from my inexperience with apache so any help would be great.

Here are some stuff my httpd.conf and httpd-vhosts.conf files

ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
Listen localhost:80
ServerName localhost:80 ( I dont think I changed this I just put localhost as server name in the msi)
DocumentRoot "C:wwwrootmecweb"
<Directory "C:wwwrootmecweb"> (defaults inside)

NameVirtualHost *:80
<VirtualHost *:80>
&nbsp;   ServerName localhost
  ;  DocumentRoot "C:wwwrootmecweb"
&lt;/VirtualHOst>

&lt;VirtualHost *:80>
&nbsp;   DocumentRoot "C:wwwrootmecweb"
&nbsp; &nbsp; ServerName mecweb.localhost
&nbsp; &nbsp; ServerAlias mecweb.localhost
&nbsp; &nbsp; ErrorLog "logsmecweb-error_log"
</VirtualHost>;


Ok so what I had in mind was to work on website "mecweb" then go to my web browser and type something like mecweb.localhost and well that didnt work so I changed my document root to mecweb';s folder and figured that when I point web browser to localhost it would pull that up. But instead I keep getting phpmyadmin which is in "C:wwwroot" which was the old doc-root before changing it to "C:wwwrootmecweb"

Is there some huge conceptual error that I just keeping making?

Thanks

Manny
Re: server to test websites
country flaguser name
United States
2007-10-16 10:59:30
Hard to really tell what's going on, but here's a couple
things to try.

Don't forget to restart your server after changes (probably
already are, 
just have to make sure).

The vhost definitions all seem pretty unnecessary, why not
just listen 
on localhost:80 and docroot to mecweb?

Manuel Mendez wrote:
> Hi everyone
> I apologize in advance if I ramble/dont get to the
point, my 
> girlfriend says I do that a lot.
>
> I just installed 2.2.6 on Windows XP with the intention
of testing 
> various websites being written on the local machine. I
am having a few 
> problems and I think they arise from my inexperience
with apache so 
> any help would be great.
>
> Here are some stuff my httpd.conf and httpd-vhosts.conf
files
>
> ServerRoot "C:/Program Files/Apache Software
Foundation/Apache2.2"
> Listen localhost:80
> ServerName localhost:80 ( I dont think I changed this I
just put 
> localhost as server name in the msi)
> DocumentRoot "C:wwwrootmecweb"
> <Directory "C:wwwrootmecweb">
(defaults inside)
>
> NameVirtualHost *:80
> <VirtualHost *:80>
>     ServerName localhost
>     DocumentRoot "C:wwwrootmecweb"
> </VirtualHOst>
>
> <VirtualHost *:80>
>     DocumentRoot "C:wwwrootmecweb"
>     ServerName mecweb.localhost
>     ServerAlias mecweb.localhost
>     ErrorLog "logsmecweb-error_log"
> </VirtualHost>
>
>
> Ok so what I had in mind was to work on website
"mecweb" then go to my 
> web browser and type something like mecweb.localhost
and well that 
> didnt work so I changed my document root to mecweb's
folder and 
> figured that when I point web browser to localhost it
would pull that 
> up. But instead I keep getting phpmyadmin which is in
"C:wwwroot" 
> which was the old doc-root before changing it to
"C:wwwrootmecweb"
>
> Is there some huge conceptual error that I just keeping
making?
>
> Thanks
>
> Manny


------------------------------------------------------------
---------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://htt
pd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
   "   from the digest: users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org


Re: server to test websites
user name
2007-10-16 18:27:01
Yeah I know, I figured out the phpmyadmin thing, internet explorer&#39;s cache was to blame. The other problem I had was that for some reason it seems apache wasn't looking into subfolders. I just uninstalled everything and then went with a wamp. This is only for test purposes so that the  there isn't a need to upload to a remote server just to see the new page 10 times a day. I will check the original configuration files for apache and php VS the wamp's to see if there are any nasty mistakes that are the cause for the problem.

Thanks for the quick reply and help.

Manny

On 10/16/07, Tom Hart < tomhartcoopfed.org">tomhartcoopfed.org> wrote:
Hard to really tell what's going on, but here's a couple things to try.

Don't forget to restart your server after changes (probably already are,
just have to make sure).

The vhost definitions all seem pretty unnecessary, why not just listen
on localhost:80 and docroot to mecweb?

Manuel Mendez wrote:
>; Hi everyone
&gt; I apologize in advance if I ramble/dont get to the point, my
> girlfriend says I do that a lot.
>
> I just installed 2.2.6 on Windows XP with the intention of testing
> various websites being written on the local machine. I am having a few
> problems and I think they arise from my inexperience with apache so
> any help would be great.
>;
> Here are some stuff my httpd.conf and httpd-vhosts.conf files
>
> ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2&quot;
> Listen localhost:80
> ServerName localhost:80 ( I dont think I changed this I just put
> localhost as server name in the msi)
> DocumentRoot "C:wwwrootmecweb"
> <Directory "C:wwwrootmecweb"> (defaults inside)
&gt;
> NameVirtualHost *:80
> <VirtualHost *:80>
  ;  ServerName localhost
> &nbsp;   DocumentRoot "C:wwwrootmecweb"
> </VirtualHOst>
>
> <VirtualHost *:80>
&gt; &nbsp; &nbsp; DocumentRoot "C:wwwrootmecweb"
>  ; &nbsp; ServerName mecweb.localhost
&gt; &nbsp; &nbsp; ServerAlias mecweb.localhost
>  ; &nbsp; ErrorLog "logsmecweb-error_log"
> </VirtualHost>
>
>
&gt; Ok so what I had in mind was to work on website "mecweb" then go to my
> web browser and type something like mecweb.localhost and well that
> didnt work so I changed my document root to mecweb';s folder and
> figured that when I point web browser to localhost it would pull that
>; up. But instead I keep getting phpmyadmin which is in "C:wwwroot"
> which was the old doc-root before changing it to "C:wwwrootmecweb"
>
> Is there some huge conceptual error that I just keeping making?
>
> Thanks
>;
> Manny


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: http://httpd.apache.org/userslist.html&gt; for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org">users-unsubscribehttpd.apache.org
&nbsp;  "&nbsp;  from the digest: users-digest-unsubscribehttpd.apache.org"> users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org">users-helphttpd.apache.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )