Welcome! Log In Create A New Profile

Advanced

Need to get it up quick, so I need help from the best: you!

Posted by Evert 
Need to get it up quick, so I need help from the best: you!
November 13, 2011 04:14PM
This site comes from Apache, and needs to be up on nginx asap as the original site is already down.

Who can help?

here is the complete .conf from Apache:

**********************************************************************************
# serve this site on port 80 only
<VirtualHost *:80>

# define the host name for this virtual host
ServerName gopherproxy.org

# define the directory from which to serve files
DocumentRoot /var/www/gopherproxy.org/html

# define the location of the log files
ErrorLog /var/www/gopherproxy.org/logs/errors
CustomLog /var/www/gopherproxy.org/logs/access combined

# apply the following directives to the entire site
<Directory "/var/www/gopherproxy.org/html">

# do not process .htaccess files
AllowOverride None

# turn on the rewrite engine
RewriteEngine On

# allow access to the favicon.ico file
RewriteRule ^favicon\.ico$ /images/favicon.ico [L]

# allow access to the robots.txt file
RewriteRule ^robots.txt$ /code/shared/robots.txt [L]

# allow access to the stylesheet
RewriteRule ^style/$ /code/shared/style.css [L]

# allow access to the images
RewriteRule ^(images/.+)/$ /$1.png [L]

# allow access to the Open Flash Chart SWF file
RewriteRule ^(open-flash-chart)/$ /code/$1.swf [L]

# allow access to the graph data
RewriteRule ^(graph-data/(all-requests|popular-servers))/$ /code/$1.php [L]
RewriteRule ^(graph-data/site-requests)/([^/]*)/$ /code/$1.php?server=$2 [L,QSA]

# allow access to the special pages
RewriteRule ^$ /code/special/introduction.php [L]
RewriteRule ^(contact|development|disclaimer|help|redirect|statistics)/$ /code/special/$1.php [L]

# normalise URLs without selectors by ensuring there is a trailing slash but no type
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^([^/]*)(/./?)?$ http://gopherproxy.org/$1/ [R=301,L]

# normalise URLs on port 70 or ending with a period by removing the port number or period
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^([^/]*)(\.|:70)/(.*)$ http://gopherproxy.org/$1/$3 [R=301,L]

# serve all other URLs using the proxy
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)$ /code/proxy/proxy.php?address=$1 [QSA,L]

</Directory>

# disallow direct access to application files
<Directory "/var/www/gopherproxy.org/html/(code|images)">
Order Allow,Deny
Allow from env=REDIRECT_STATUS
</Directory>

</VirtualHost>
**********************************************************************************

--
Regards,
Evert
Re: Need to get it up quick, so I need help from the best: you!
November 14, 2011 02:16PM
Hello,

if you need it quick, I can help for money. PM: loco@andrews.lv if interested.

Andrejs
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready