htaccess not working
Thank you
3 Replies
virtual host:
<virtualhost *:80=""># Admin email, Server Name (domain name), and any aliases
AllowOverride All
ServerAdmin me@mysite.com
ServerName www.mysite.com
ServerAlias mysite.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/user/public/mysite.com/public
<directory>Options FollowSymLinks
AllowOverride All</directory>
# Log file locations
LogLevel warn
ErrorLog /home/user/public/mysite.com/log/error.log
CustomLog /home/user/public/mysite.com/log/access.log combined</virtualhost>
when using this command: sudo a2dissite
I'm getting:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LCPAPER = "heIL.UTF-8",
LCADDRESS = "heIL.UTF-8",
LCMONETARY = "heIL.UTF-8",
LCNUMERIC = "heIL.UTF-8",
LCTELEPHONE = "heIL.UTF-8",
LCIDENTIFICATION = "heIL.UTF-8",
LCMEASUREMENT = "heIL.UTF-8",
LCTIME = "heIL.UTF-8",
LCNAME = "heIL.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Thank you
<virtualhost *:80=""># Admin email, Server Name (domain name), and any aliases
ServerAdmin me@mysite.com
ServerName www.mysite.com
ServerAlias mysite.com
<directory>Options FollowSymLinks
AllowOverride None</directory>
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/user/public/mysite.com/public
<directory home="" user="" public="" mysite.com="">AllowOverride All</directory>
# Log file locations
LogLevel warn
ErrorLog /home/user/public/mysite.com/log/error.log
CustomLog /home/user/public/mysite.com/log/access.log combined</virtualhost>