Pages: Previous12
Current Page: 2 of 2
Re: mod_rewrite not working
Posted by: yfastud (Moderator)
Date: February 24, 2010 01:27AM

vh is better since you can access website from outside when needed

to setup vh, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: mod_rewrite not working
Posted by: shadyyx (---.karneval.cz)
Date: February 24, 2010 08:12PM

Thank You for the article.

Just one question:

I am placing projects and applications outside c:/wamp/www/ from certain reason, so is it possible to create a virtual host and specify its DocumentRoot different as the one set in httpd.conf ???

So it would look like:
<VirtualHost *:80>
ServerName www.domain.com
ServerAlias domain.com domain
DocumentRoot C:/www/domain
ErrorLog C:/www/domain/logs/error.log
CustomLog C:/www/domain/logs/access.log common
</VirtualHost>
while DocumentRoot in httpd.conf will still point to c:/wamp/www/ ???

Options: ReplyQuote
Re: mod_rewrite not working
Posted by: yfastud (Moderator)
Date: February 25, 2010 01:27AM

theory, you can setup document root outside wamp folder, but do you really need to do it since visitors will only see contains belonging to certain document root that set in vh that ties to certain sub/domains; for example, even these 2 are subdomains of jlbn but since its document root set to different folders, you will see the different contains

[themes.jlbn.net]
[blog.jlbn.net]

In additions, set all document roots in www is much easier to maintain/backup


to setup backup, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: mod_rewrite not working
Posted by: Halialduhoky (185.136.149.---)
Date: August 24, 2017 09:33AM

I have same problem, but not exactly.



Edited 1 time(s). Last edit at 08/24/2017 07:00PM by Otomatic.

Options: ReplyQuote
Re: mod_rewrite not working
Posted by: Otomatic (Moderator)
Date: August 24, 2017 07:03PM

Hi,

You stay in YOUR discussion and you do not "respond" to a message that is more than seven years old.

Closed discussion.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 2 time(s). Last edit at 08/24/2017 10:00PM by Otomatic.

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, you can't reply to this topic. It has been closed.