-
More than one server name, more than one computer name
Posted on May 26th, 2009 No commentsHello,
I am running Apache, and my computer name is mx458, so other computers on our network can access my webserver by typing in on their browser http://mx458, is there a way I change the name so they can access it by typing in http://frankswebserver. Is there a way I can do this without changing my computer name?
Tags: servername, host name, virtual hostAdd a host file on your DNS server.
-
.htaccess redirect from static site to Wordpress
Posted on May 26th, 2009 No commentsI’m trying to redirect pages from an old static site to new pages in WordPress. So, for example,
http://www.mysite.com/contact.htm
should redirect to:
http://www.mysite.com/contact
I’m using the following in the .htaccess file, but it’s not working:
redirect 301 /mysite/contact.htm http://www.mysite.com/contact
I ended up figuring this out myself and implemented as a series of rewrites along the lines of:
RewriteCond %{HTTP_HOST} ^jeffthomascobb.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.jeffthomascobb.com$
RewriteRule ^contact\.htm$ “http\:\/\/www\.jeffthomascobb\.com\/contact\/” [R=301,L]etc.
Works fine now
-
mod_alias in .htaccess
Posted on May 26th, 2009 No commentsHi,
I know you’re not allowed to have a alias in .htaccess, but I would like, on my hosting server, to create an alias (I use godaddy). Is there anything I can do about this?
You can test if mod_rewrite is available
RewriteEngine on
# rewrite /alias/foo to /folder/foo
RewriteRule ^alias/(.*) /folder/$1 [L] -
.htaccess help needed
Posted on May 26th, 2009 No commentsHi folks,
I am trying to use an .htaccess file on my server but no matter how much documentation I have found, nothing states what the owner:group should be set to for the file as well as the permissions. I currently have the owner:group set to the same as the vhost. Do I need to set the owner:group to apache’s owner:group instead?
As for the permissions, I have them set to 660. Should this be set to something else?
Finally, this is what I have for the .htaccess contents of the file. Is this workable code for blocking access to images and javascript files throughout the site?
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js)$ [NC]
RewriteRule (.*)/leech.php [R,NC,L]> Is this workable code for blocking access to images and javascript files throughout the site?
No, you’ll need to check the referer for something external
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example\.com
RewriteCond %{HTTP_REFERER} !=”"
RewriteRule \.(gif|jpe?g|png|js)$ /leech.php [R,NC,L] -
Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error:
Posted on May 26th, 2009 No commentsHi,
I really need a help please. Evryone is welcome i am getting a probleme since three days.
I am installing PHP 2.2.9 on SUN Solaris 10 with apache 2.2.9 and perl 5.8.8.
Everything seems to be good unless PHP Configuration.
I did those commands below :
./configure –with-oracle=/u01/app/product/10203
–with-oci8=/u01/app/oracle/product/10203
–prefix /usr/local
–with-apxs2=/usr/local/apache2/bin/apxs
–with-mssql=/usr/local
make
make installI did’nt have any fatal error message until the end.
But I get error this messge error when trying to start apache :httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error: file /usr/local/apache2/modules/libphp5.so: symbol xmlTextReaderSetup: referenced symbol not found
I’ve installed libxml2 yet.
Can you help me to find ?Thanks for tour reply
I wish I could!
I can’t close it, to do that I would need you to click Accept on one of my posts




Recent Comments