Hello
i got long name for my client area
http://Public-IP:PORT/long-name-clientarea-name
i need to make it short
http://PublicIP:PORT/Client
Regards
OS :Centls7
Servers apache and My sql
Directory /etc/var/html/long-name-clientarea-name
Create short name for my directory
Re: Create short name for my directory
Maybe a symbolic link would work?
Re: Create short name for my directory
i just try add short name after
DocumentRoot "/var/www/html
Alias /client /var/www/long-name-clientarea-name
DirectoryIndex user.php
Options Includes FollowSymLinks MultiViews
AllowOverride None
order allow,deny
Allow from all
<Directory "/var/www/html">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
Regards
DocumentRoot "/var/www/html
Alias /client /var/www/long-name-clientarea-name
DirectoryIndex user.php
Options Includes FollowSymLinks MultiViews
AllowOverride None
order allow,deny
Allow from all
<Directory "/var/www/html">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
Regards
Re: Create short name for my directory
Or just rename the directory to a shorter name?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Create short name for my directory
There are two sides on that question.
1. What should/could be done with Apache config. That is not strictly an OS issue. See:
https://httpd.apache.org/docs/2.4/urlma ... cumentroot
https://httpd.apache.org/docs/2.4/mod/m ... html#alias
Those do mention the symbolic links (and that Apache must be told to allow following links).
They also point that aliases are usually outside of DocumentRoot.
The /var/www/long-name-clientarea-name is apparently outside of /var/www/html
(or we see misleading obfuscation).
2a. On the OS/filesystem level one could:
However, arbitrary directories outside of DocumentRoot do not have that context. They must be (re)labeled, or SELimux blocks access.
1. What should/could be done with Apache config. That is not strictly an OS issue. See:
https://httpd.apache.org/docs/2.4/urlma ... cumentroot
https://httpd.apache.org/docs/2.4/mod/m ... html#alias
Those do mention the symbolic links (and that Apache must be told to allow following links).
They also point that aliases are usually outside of DocumentRoot.
The /var/www/long-name-clientarea-name is apparently outside of /var/www/html
(or we see misleading obfuscation).
2a. On the OS/filesystem level one could:
- Rename (i.e. "move") directories
- Bind mount /var/www/long-name-clientarea-name at /var/www/html/client
- Create symbolic link /var/www/html/client to /var/www/long-name-clientarea-name
However, arbitrary directories outside of DocumentRoot do not have that context. They must be (re)labeled, or SELimux blocks access.