This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

www to non www redirection
#2
RE: www to non www redirection
Doing

Code:
cat /etc/sentora/configs/apache/httpd-vhosts.conf

returns this

Code:
################################################################


# DOMAIN: subdomain.mysite.com
<virtualhost *:80>
ServerName subdomain.mysite.com
ServerAdmin zadmin@localhost
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/subdomain_mysite_com"
php_subdomain_value open_basedir "/var/sentora/hostdata/zadmin/public_html/subdomain_mysite_com:/var/sentora/temp/"
php_subdomain_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg"
ErrorLog "/var/sentora/logs/domains/zadmin/subdomain.mysite.com-error.log"
CustomLog "/var/sentora/logs/domains/zadmin/subdomain.mysite.com-access.log" combined
CustomLog "/var/sentora/logs/domains/zadmin/subdomain.mysite.com-bandwidth.log" common
<Directory "/var/sentora/hostdata/zadmin/public_html/subdomain_mysite_com">
  Options +FollowSymLinks -Indexes
  AllowOverride All
  Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)

# Custom VH settings (if any exist)

</virtualhost>
# END DOMAIN: subdomain.mysite.com
################################################################


Since this is a file automatically generated by Sentora, is there a way for me to edit this part:

Code:
<Directory "/var/sentora/hostdata/zadmin/public_html/subdomain_mysite_com">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>


so that it includes the rules I'd originally placed in .htaccess?

Also, will this edit provide what I'd originally intended to do (www to non www)?
Reply
Thanks given by:


Messages In This Thread
www to non www redirection - by JSmith - 04-27-2018, 04:50 PM
RE: www to non www redirection - by JSmith - 04-30-2018, 06:21 PM
RE: www to non www redirection - by TGates - 05-01-2018, 12:48 PM
RE: www to non www redirection - by JSmith - 05-03-2018, 11:19 PM
RE: www to non www redirection - by TGates - 05-04-2018, 07:15 AM
RE: www to non www redirection - by yusha - 08-10-2018, 04:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
redirection domain marketingdigitalmassivo 3 8 ,582 07-20-2016, 07:38 PM
Last Post: Me.B
webmail redirection not working surfnode 18 51 ,603 03-21-2015, 10:10 PM
Last Post: kini
Redirection help please. parked domain does not work!! artdenic 10 33 ,389 03-08-2015, 08:54 PM
Last Post: Ron-e

Forum Jump:


Users browsing this thread: 2 Guest(s)