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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.1.11/7.0.25/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.1.11/7.0.25/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



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.