http://xx.xx.xx.xx:88/stalker_portal/api/api_v2/users/2/tv_channels
<VirtualHost *:88>
DocumentRoot /var/www/stalker_portal/api
ServerName v2.api.example.com
</VirtualHost>how can i make a sub domain for IP
If this is not real server with domain name you can use fake name and add it to your hosts file e.g. for linux add to the /etc/hosts line
v2.api.example.com 192.168.1.1
127.0.0.1 v2.api.vpetkovtest.com127.0.0.1 localhost
127.0.0.1 v2.api.vpetkovtest.com
127.0.1.1 stalker-test
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters<VirtualHost *:88>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
<VirtualHost *:88>
ServerName v2.api.vpetkovtest.com
DocumentRoot /var/www/stalker_portal/api/
<Directory /var/www/stalker_portal/api/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
sudo a2ensite vpetkovtest
127.0.0.1 v2.api.vpetkovtest.com